Skip to content

Merge branch 'main' of https://github.com/smallstack/utils #37

Merge branch 'main' of https://github.com/smallstack/utils

Merge branch 'main' of https://github.com/smallstack/utils #37

name: Continuous Testing
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- name: Install node
run: volta install node
- run: npm ci
- run: npm run build
- run: npm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}