-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (29 loc) · 948 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
# This workflow will do a clean install of node dependencies and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test React app
on:
push:
branches:
jobs:
build:
runs-on: ubuntu-latest
env:
REACT_APP_IS_TESTING: true
REACT_APP_SERVER_HOST: https://cov-spectrum.org/api/v2
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run check-types
- run: npm run test
- run: npm run check-dependencies