Skip to content

Commit

Permalink
Modernized GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aschaeffer committed Sep 7, 2024
1 parent 15a208e commit 71ba254
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: VCS Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
toolchain: nightly-2024-08-19
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: "fmt"
args: "--all -- --check"
run: cargo fmt --all -- --check
15 changes: 7 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: VCS Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
toolchain: nightly-2024-08-19
components: clippy
- name: Setup Node.js 18
uses: actions/setup-node@v3
Expand All @@ -46,9 +45,9 @@ jobs:
uses: borales/actions-yarn@v4
with:
cmd: --cwd plugins/graphql-schema-visualization/web install
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
uses: mozilla-actions/sccache-action@v0.0.5
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
run: cargo clippy

0 comments on commit 71ba254

Please sign in to comment.