Skip to content

Commit

Permalink
Merge pull request #133 from AeroRust/chore/bump-msrv-and-deps
Browse files Browse the repository at this point in the history
Chore/bump msrv and deps
  • Loading branch information
elpiel authored Aug 27, 2024
2 parents 6d44b63 + 9d21f23 commit 5675768
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 157 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
# Check for outdated actions
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"
28 changes: 19 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# use nightly for rustfmt & clippy checks
- name: Install Rust nightly toolchain
Expand All @@ -50,9 +50,9 @@ jobs:

matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: ["1.65", stable, beta]
rust: ["1.70", stable, beta]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -66,22 +66,32 @@ jobs:
- name: Test --no-default-features
run: cargo test --no-default-features

- name: Test all features excluding `defmt-03`
- name: Test feature serde
# this includes default features, `std` and `all-sentences`
run: cargo test -F serde

- name: Test feature defmt-03
# this includes default features, `std` and `all-sentences`
if: ${{ matrix.os != 'windows-latest' }}
run: cargo test -F defmt-03

- name: Test (Release)
run: cargo test --release --no-default-features

- name: Test (Release) all features excluding `defmt-03`
- name: Test (Release) feature serde
# this includes default features, `std` and `all-sentences`
run: cargo test --release -F serde

- name: Test (Release) feature defmt-03
if: ${{ matrix.os != 'windows-latest' }}
# this includes default features, `std` and `all-sentences`
run: cargo test --release -F defmt-03

bench:
name: Benches
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -96,7 +106,7 @@ jobs:
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Docs.rs uses nightly, which allows for easier syntax for linking to functions.
- uses: dtolnay/rust-toolchain@nightly
with:
Expand All @@ -115,14 +125,14 @@ jobs:
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate code coverage
# this includes default features, `std` and `all-sentences`
run: cargo +nightly tarpaulin --features serde --verbose --workspace --timeout 120 --out xml

- name: Upload to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Loading

0 comments on commit 5675768

Please sign in to comment.