Skip to content

react-v18

react-v18 #123

name: 'TestsWithCoverage'
on: [push, pull_request]
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
working-directory: react
- name: Audit
run: npm run audit
working-directory: react
- name: Start server and run all tests with coverage
run: npm start & sleep 60; npm run coverage
working-directory: react
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./react/coverage/coverage-final.json