chore: move fallible code to end of function #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
check-flake: | |
name: Check flake | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v24 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check flake | |
run: nix flake check --all-systems | |
test-stable: | |
name: Test - stable toolchain | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v24 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Run test script | |
run: | | |
nix develop --command bash -c "just check" |