Skip to content

Commit

Permalink
Update CI config (#101)
Browse files Browse the repository at this point in the history
* Update actions/checkout action to v4

* Replace unmaintained actions-rs/toolchain action

* Cache cargo-expand

* Remove outdated ignore list from dependabot config
  • Loading branch information
taiki-e authored Mar 30, 2024
1 parent 5ae4671 commit 9e50575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ updates:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: rand
versions:
- "> 0.7.3, < 1"
- dependency-name: rand
versions:
- ">= 0.8.a, < 0.9"
- package-ecosystem: cargo
directory: "/test-procmacro-project"
schedule:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ jobs:
os: [ubuntu, macos, windows]

steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
profile: minimal
override: true
toolchain: ${{ matrix.rust }}

# A nightly toolchain is required for cargo-expand to work, even if the
# toolchain with which tests are run is not nightly.
- run: rustup toolchain install nightly
if: matrix.rust != 'nightly'

- run: cargo install cargo-expand
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: cargo-expand

- run: cargo test --manifest-path test-project/Cargo.toml -- --nocapture

Expand Down

0 comments on commit 9e50575

Please sign in to comment.