Skip to content

v5.0.0-alpha.4

v5.0.0-alpha.4 #292

Workflow file for this run

name: ci-merge
on:
push:
branches: ["main"]
workflow_dispatch:
branches: ["main"]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Enable Corepack
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
- name: Build
run: yarn build
- name: Unit tests
run: yarn test:ci
- name: Process Test Results
uses: dorny/test-reporter@v1
with:
name: Jest Tests
path: "junit.xml"
reporter: jest-junit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage/coverage-final.json
verbose: true
- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{ github.workspace }}/coverage/lcov.info:lcov
- name: Upload coverage to Codacy
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage/lcov.info