Skip to content

Commit

Permalink
wip: use nix-develop gh action step
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Sep 25, 2024
1 parent 707d495 commit 229b6e6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ jobs:
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-build-
- name: Install nix packages
run: nix develop -c $SHELL -c "echo Nix packages installed"
uses: nicknovitski/nix-develop@v1

- name: Install JS packages
run: nix develop -c $SHELL -c "npm ci"
run: npm ci

- name: Clippy
run: nix develop -c $SHELL -c "npm run cargo:clippy"
run: npm run cargo:clippy

- name: Check rust formatting
run: nix develop -c $SHELL -c "npm run cargo:fmt:check"
run: npm run cargo:fmt:check

- name: Build Happ
run: nix develop -c $SHELL -c "npm run build:happ"
run: npm run build:happ

- name: Save cargo and build to cache
uses: actions/cache/save@v3
Expand All @@ -65,4 +65,4 @@ jobs:
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}

- name: Test with tryorama
run: nix develop -c $SHELL -c "npm run test"
run: npm run test

0 comments on commit 229b6e6

Please sign in to comment.