Skip to content

Commit

Permalink
Update Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jun 28, 2024
1 parent 9a56729 commit 31c3ab4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,30 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm install
- run: npm run lint
- run: npm run test

check-rust:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-25

- name: Run tests
run: cargo test --verbose
- name: Cache
uses: Swatinem/rust-cache@v2

- name: Run clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build

- name: Run linter
run: cargo fmt -- --check

- name: Run clippy
run: cargo clippy --all-targets -- -D warnings

- name: Run tests
run: cargo test --verbose
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
node-version: 20

- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-25

- name: Install frontend dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly"
channel = "nightly-2024-06-25"

0 comments on commit 31c3ab4

Please sign in to comment.