Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Chore: Update devDependencies 🆙 #1732

Chore: Update devDependencies 🆙

Chore: Update devDependencies 🆙 #1732

Workflow file for this run

name: CI/CD
on: [push]
jobs:
test:
name: Continuous Integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
# Take advantage of smart caching built into Cypress GH action to install
# dependencies
- name: Install dependencies
uses: cypress-io/github-action@v2
with:
runTests: false # Just perform install
- name: 'Test: Lint'
run: npm run test:lint
- name: 'Test: Unit'
run: npm run test:unit
- name: 'Test: E2E'
uses: cypress-io/github-action@v2
with:
# Prefix Cypress command with Percy command for screenshots
command-prefix: 'percy exec -- npx'
install: false
record: true
start: npm run start:instrument
wait-on: 'http://localhost:3000'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Allows accurately detecting a build vs a re-run build
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: 'Code Climate: Report'
if: success()
run: |
export GIT_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF:11}}"
export GIT_COMMIT="${GIT_COMMIT_SHA}"
# Fetch Code Climate binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
# Notify Code Climate of the pending report
./cc-test-reporter before-build
# Format and merge unit and e2e coverage reports
./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.cypress.json coverage_cypress/lcov.info
./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.jest.json coverage_jest/lcov.info
./cc-test-reporter sum-coverage coverage/codeclimate.*.json -p 2
# Send final report to Code Climate
./cc-test-reporter upload-coverage
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}