Skip to content

Commit

Permalink
Add nightly to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 2, 2024
1 parent 6698c2d commit f9b6217
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Rust
on:
workflow_dispatch:
push:
branches: [ "master" ]
branches: [ "main" ]
pull_request:

env:
Expand All @@ -28,8 +28,10 @@ jobs:
just-version: 1.35.0
- name: Install the stable toolchain
uses: dtolnay/rust-toolchain@stable
# - name: Install the nightly toolchain
# uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install the nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
# - name: Install latest nextest release
Expand All @@ -50,6 +52,8 @@ jobs:
# run: cargo +nightly fmt --all --check -- --error-on-unformatted --unstable-features
- name: Run tests
run: just test
- name: Run tests (nightly)
run: just test-nightly
# - name: Run coverage
# if: runner.os == 'Linux'
# run: |
Expand Down
19 changes: 16 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
build:
cargo build --workspace

test:
cargo test --workspace

build:
cargo build --workspace

prep:
# https://rust-analyzer.github.io/manual.html#installation
rustup component add rust-src
rustup component add rust-analyzer

prep-nightly:
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
rustup component add rust-analyzer --toolchain nightly

test-nightly:
cargo +nightly test --workspace

build-nightly:
cargo +nightly build --workspace

nightly: prep-nightly test-nightly

0 comments on commit f9b6217

Please sign in to comment.