Skip to content

383 notification service (#736) #2402

383 notification service (#736)

383 notification service (#736) #2402

Workflow file for this run

name: Automated Tests and Linting
on:
pull_request:
branches: ['main']
jobs:
test-prettier-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.22.1]
steps:
- 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 packages
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