-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 925 Bytes
/
react.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@v21
- 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