Skip to content

feat: release 1.0.7 #13

feat: release 1.0.7

feat: release 1.0.7 #13

Workflow file for this run

name: Test
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version:
- 10.x
- 12.x
- 14.x
- 16.x
steps:
- name: CHECKOUT GIT REPOSIRORY
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: INSTALL PROJECT DEPENDENCIES (yarn)
run: yarn install --frozen-lockfile
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Running tests
run: yarn test
- name: Upload coverage data to codecov
run: yarn codecov
- name: Upload coverage data to codacy
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: report/coverage/cobertura-coverage.xml