Skip to content

Merge pull request #188 from mdesantis/dependabot/npm_and_yarn/nyc-17… #802

Merge pull request #188 from mdesantis/dependabot/npm_and_yarn/nyc-17…

Merge pull request #188 from mdesantis/dependabot/npm_and_yarn/nyc-17… #802

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y bash inkscape jq
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npx nyc --reporter=lcov npm test
# codecov action breaks some builds for no reason, so we need to ignore its failures.
# See: https://github.com/mdesantis/force-english-content/actions/runs/9333212817/job/25689985967
# - run: npx codecov
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# fail_ci_if_error: true
# verbose: true
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}