feat: STRF-12315 Bump stencil-paper version; BREAKING CHANGE: Drop Node 16 Support #878
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
name: Tests | |
on: | |
pull_request: | |
branches: [master, main, release-**] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: [18.x, 20.x, 22.x] | |
os: ['ubuntu-latest', 'windows-2019', 'macos-latest'] | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: test | |
run: uname -m | |
- name: If macos set architecture | |
if: ${{matrix.node == 'macos-latest'}} | |
run: arch -x86_64 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint the code | |
run: npm run lint | |
- name: Run tests | |
run: npm run test-with-coverage |