Skip to content

Commit

Permalink
Merge 68c71b3 into 52b9184
Browse files Browse the repository at this point in the history
  • Loading branch information
dholroyd committed Dec 2, 2022
2 parents 52b9184 + 68c71b3 commit dfc3618
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ updates:
- dependency-name: hex-literal
versions:
- ">= 0.3.a, < 0.4"

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
49 changes: 38 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,62 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.62.0

- name: Build
run: cargo build --verbose
run: cargo build --verbose --all-targets

- name: Run tests
run: cargo test --verbose


coverage:
name: Rust code coverage
runs-on: ubuntu-latest
name: Coverage
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
toolchain: 1.62.0

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--exclude-files shootout --exclude-files benches --exclude-files fuzz --out Lcov -- --test-threads 1'

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'


clippy:
name: Lint 📎
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.62.0
components: clippy

- name: Run clippy
# TODO: Use a tag once available
uses: actions-rs-plus/clippy-check@43303e5bdba1efbf5961020e5743d530fb1de0c1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

0 comments on commit dfc3618

Please sign in to comment.