Skip to content

docs: fix badges

docs: fix badges #340

Workflow file for this run

name: React CI - Automated Tests, Linting and Build
on:
pull_request:
branches: ['main']
env:
NODE_ENV: test
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.19.0]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Run Tests
run: |
yarn test:coverage
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn test:coverage
- name: Run Prettier
run: |
yarn prettier
- name: Run Lint
run: |
yarn lint
- name: Run Build
run: |
yarn build