diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b805c49..4db9860 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,24 +12,33 @@ on: jobs: test: runs-on: ubuntu-latest - steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - - name: Generate cargo lockfile - run: cargo generate-lockfile - - - name: Cargo cache - uses: actions/cache@v3 + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + toolchain: stable - name: Test run: cargo test + + verify-msrv: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + + - name: Install cargo-msrv + uses: taiki-e/install-action@v2 + with: + tool: cargo-msrv + + - name: Verify msrv + run: cargo msrv verify --all-features diff --git a/Cargo.toml b/Cargo.toml index 141734d..bf2e39a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ name = "serde-inline-default" version = "1.0.1" authors = ["bytedream"] edition = "2021" +rust-version = "1.71.0" description = "Serde default values via inline declaration" readme = "README.md" repository = "https://github.com/bytedream/serde-inline-default"