Merge pull request #109 from gabrielogregorio/dev #92
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 and e2e tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
environment: base | |
runs-on: ubuntu-latest | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install dependencies | |
run: yarn install --frozen-lockfile | |
- run: yarn run jest:coverage | |
- run: yarn cypress:headless | |
- name: up coverage to codacy | |
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info |