Skip to content

cd: gh action: add step to retrieve logs #15

cd: gh action: add step to retrieve logs

cd: gh action: add step to retrieve logs #15

Workflow file for this run

name: "CI: test, coverage & build"
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
# "node_js: - stable" logic (Node 24 is current LTS/stable)
node-version: [24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn" # Automatic caching for Yarn
- name: Install dependencies
# --frozen-lockfile ensures yarn.lock is respected exactly
run: yarn install --frozen-lockfile
- name: Run lint
# This runs lint with eslint
run: yarn lint
- name: Run tests and generate coverage
# This runs vitest with coverage enabled
run: yarn test:coverage
- name: Upload to Coveralls
run: yarn coveralls
env:
# REQUIRED: The script needs this to know where to upload
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Build the library
run: yarn build