Bump cachix/install-nix-action from 21 to 23 #128
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: Build and Test React Code | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
CI: 'true' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: clients/browser | |
steps: | |
- uses: styfle/[email protected] | |
name: Cancel Outdated Builds | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
name: Checkout Repository | |
- name: Install Nix | |
uses: cachix/install-nix-action@v23 | |
- name: Install Node Packages | |
run: nix develop -c npm install | |
- name: Lint | |
run: nix develop -c npx eslint src | |
- name: Audit | |
run: nix develop -c npm audit --omit dev | |
- name: Build | |
run: nix develop -c npm run build | |
- name: Test | |
timeout-minutes: 30 | |
run: nix develop -c npm test |