Skip to content

Add GitHub workflow and Update badges (#27) #4

Add GitHub workflow and Update badges (#27)

Add GitHub workflow and Update badges (#27) #4

name: Build, Tests and Coverage
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build-tests-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run tests and generate coverage report
run: npm run test-ci
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]