This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Build(deps): Bump semver from 7.3.5 to 7.5.2 #6457
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: Unit tests & coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.8.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Yarn cache | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Yarn install | |
run: | | |
mkdir .yarncache | |
yarn install --cache-folder ./.yarncache --frozen-lockfile | |
rm -rf .yarncache | |
yarn cache clean | |
- name: Run tests | |
run: 'npm run test:ci' | |
- name: Comment in failing tests | |
uses: mattallty/jest-github-action@v1.0.3 | |
if: failure() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
test-command: 'echo unit tests already executed' | |
coverage-comment: false | |
- name: Coveralls Report | |
uses: coverallsapp/github-action@1.1.3 | |
if: success() || failure() | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |