Update client-react #374
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
SKIP_PREFLIGHT_CHECK: 'true' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node 12 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 12.x | |
- name: Use parent cached node_modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/node_modules | |
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
nodeModules- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint and Test | |
run: yarn test | |
env: | |
JWT_ACCESS_SECRET: access_secret | |
JWT_REFRESH_SECRET: refresh_secret |