Skip to content

5.0.0

5.0.0 #21

Workflow file for this run

name: Lint, test and build
on:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run Static Code Analysis
uses: codacy/codacy-analysis-cli-action@master
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install deps
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test --coverage
- name: Upload coverage on Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/lcov.info
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}