CI: Test with nodejs 22, current active lts version #157
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
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
NODE_OPTIONS: --experimental-vm-modules | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: [ 18, 20, 22 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn install | |
- name: Can load prettier plugin properly | |
run: yarn prettier --version | |
- name: Run linter | |
run: yarn lint | |
- name: Run Test | |
run: yarn test |