Skip to content

docs: Add change to changelog #812

docs: Add change to changelog

docs: Add change to changelog #812

Workflow file for this run

name: build
on:
push:
branches:
- main
- release
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
node: ["16.14.0", "18.2.0", "20.5.1"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
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 dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check types
run: npm run tsc
- name: Test unit
run: npm run test:unit
- name: Test E2E
run: npm run test:e2e:ci
id: test-e2e
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.node }}
path: coverage
retention-days: 1
quality:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download test results
uses: actions/download-artifact@v3
with:
name: coverage-18.2.0
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}