Skip to content

chore: update GitHub Actions workflows to use latest action versions #333

chore: update GitHub Actions workflows to use latest action versions

chore: update GitHub Actions workflows to use latest action versions #333

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.2.0
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Run linter
run: npm run lint
# Skip unit tests for Node.js 12.x due to syntax incompatibility with dependencies
- name: Run tests
if: ${{ !startsWith(matrix.node-version, '12.') }}
run: npm run test:unit:ci # Run unit tests, skipping style checks
env:
CI: true
# Skip size-limit check in CI as it requires OpenSSL legacy provider
- name: Verify bundle existence
run: |
ls -la dist/main.js
ls -la dist/module.js
- name: Upload code coverage results
uses: actions/upload-artifact@v4.6.0
with:
name: code-coverage-report-node-${{ matrix.node-version }} # Unique name for the uploaded artifact
path: junit.xml
if-no-files-found: ignore