Skip to content

Commit

Permalink
Use nix in build, test, lint pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thmshmm committed May 5, 2024
1 parent ec7bc7c commit 6c1d5d6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
build-test-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- name: Build
run: cargo build
run: |
nix build
- name: Test
run: cargo test
run: |
nix develop --ignore-environment --command "cargo" "test"
- name: Lint
run: cargo clippy

run: |
nix develop --ignore-environment --command "cargo" "clippy"

0 comments on commit 6c1d5d6

Please sign in to comment.