chore(deps): bump caniuse-lite from 1.0.30001473 to 1.0.30001481 #1641
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For details of what checks are run for PRs please refer below | |
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: Node CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
REPORTS_DIR: CI_reports | |
NODE_ACTIVE_LTS: "18" # https://nodejs.org/en/about/releases/ | |
jobs: | |
build: | |
name: build ${{ matrix.target }} | |
runs-on: "ubuntu-latest" | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
# see https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ env.NODE_ACTIVE_LTS }} | |
# see https://github.com/actions/setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_ACTIVE_LTS }} | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: setup project | |
run: npm ci --ignore-scripts | |
- name: build ${{ matrix.target }} | |
run: npm run build | |
- name: artifact build result | |
# see https://github.com/actions/upload-artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
if-no-files-found: error | |
test-standard: | |
name: test standard | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
# see https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ env.NODE_ACTIVE_LTS }} | |
# see https://github.com/actions/setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_ACTIVE_LTS }} | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: setup project | |
run: npm ci --ignore-scripts | |
- name: test | |
run: npm run test:standard | |
test-jest: | |
needs: [ 'build' ] | |
name: test:Jest (node${{ matrix.node-version }}, ${{ matrix.os }}) | |
timeout-minutes: 30 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest" ] | |
node-version: | |
# action based on https://github.com/actions/node-versions/releases | |
# see also: https://nodejs.org/en/about/releases/ | |
- "19" # current | |
- "18" # active LTS | |
- '16' | |
- "14" | |
env: | |
REPORTS_ARTIFACT: tests-reports | |
steps: | |
- name: Checkout | |
# see https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
# see https://github.com/actions/setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- # some integration tests require a certain npm version to be installable | |
name: update npm | |
run: npm i -g npm@^8 | |
- name: display version | |
run: |- | |
node --version | |
npm --version | |
- name: install project | |
run: npm ci --ignore-scripts | |
- name: fetch build artifact | |
# see https://github.com/actions/download-artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- name: setup test beds | |
run: npm run setup-tests | |
- name: test | |
run: npm run test:jest |