Skip to content

Commit

Permalink
ci: Check MSRV, bump to 1.60 and improve feature coverage.
Browse files Browse the repository at this point in the history
This also combines the jobs into one since they run quickly
and this reduces the overhead of installing deps for each
step.
  • Loading branch information
waywardmonkeys authored and pyfisch committed Aug 13, 2023
1 parent 7b4278e commit ef1932a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@ on: [push, pull_request]
name: Continuous integration

jobs:
check:
name: Check
check-test:
name: Check and test crate
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- "1.60"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
# Default features
- run: cargo check --all-targets

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
# No default features
- run: cargo check --all-targets --no-default-features
- run: cargo test --no-default-features

clippy-fmt:
name: Run Clippy and format code
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
repository = "https://github.com/pyfisch/keyboard-types"
keywords = ["keyboard", "input", "event", "webdriver"]
edition = "2018"
rust-version = "1.56"
rust-version = "1.60"

[features]
default = ["serde", "webdriver"]
Expand Down

0 comments on commit ef1932a

Please sign in to comment.