Skip to content

os upgrade

os upgrade #4

Workflow file for this run

name: CI
# Mirrors the CircleCI 'build' job so GitHub Actions runs the same pipeline: install
# dependencies, run the lint + unit tests with coverage, and upload coverage to Codecov.
# CircleCI is kept in parallel for now and will be removed once this fully replaces it.
on:
push:
branches:
- '**'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '12'
cache: npm
- name: Install
run: npm install
- name: Test
run: npm test
# On a test failure only, publish a "Tests" check with the failed tests, their error
# message and stack trace (reads the Mocha JUnit report). Green runs show nothing.
- name: Publish test results
if: failure()
uses: mikepenz/action-junit-report@v5
with:
check_name: Tests
report_paths: 'test/results/**/*.xml'
skip_success_summary: true
fail_on_failure: false
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v6
with:
files: coverage/lcov.info
fail_ci_if_error: false