Skip to content

Merge pull request #868 from GenSpectrum/867-update-wastewater-in-swi… #2520

Merge pull request #868 from GenSpectrum/867-update-wastewater-in-swi…

Merge pull request #868 from GenSpectrum/867-update-wastewater-in-swi… #2520

Workflow file for this run

# 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