update plugins #12
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: Main | |
on: | |
push: | |
branches: ['main'] | |
env: | |
TESTRADAR_API_KEY: ${{ secrets.TESTRADAR_API_KEY }} | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- run: npm ci | |
# `JEST_RETRIES` doesn't auto enable test retries. | |
# It needs to be used with `jest.retryTimes(numRetries)`. | |
# see: https://github.com/merge-tools/test-radar-example-repo/blob/main/src/setupTests.ts#L7 | |
- run: JEST_RETRIES=2 npm test | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- name: Cypress Run | |
uses: cypress-io/github-action@v5 | |
env: | |
CYPRESS_RETRIES: 2 | |
with: | |
command: npm run e2e | |
format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- run: npm ci | |
- run: npx prettier . --check --ignore-unknown |