Skip to content

Update build files #253

Update build files

Update build files #253

Workflow file for this run

on:
push:
branches:
- 'main'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8.x.x
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Unit & Integration tests
run: pnpm jest
- name: JS Code Coverage Summary Report
if: ${{ github.event_name == 'pull_request' }}
uses: romeovs/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./outputs/coverage/lcov.info
delete-old-comments: true
title: JS Code Coverage
- name: JS coverage check
if: ${{ github.event_name == 'pull_request' }}
uses: VeryGoodOpenSource/[email protected]
with:
min_coverage: 70
path: ./outputs/coverage/lcov.info