Skip to content

ci: test against Ruby 3.1 and 3.2, and Node 20 #9

ci: test against Ruby 3.1 and 3.2, and Node 20

ci: test against Ruby 3.1 and 3.2, and Node 20 #9

Workflow file for this run

name: Node based checks
on:
push:
branches:
- 'main'
- 'next'
pull_request:
concurrency:
# Pushing new changes to a branch will cancel any in-progress CI runs
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Linting
strategy:
matrix:
os: [ubuntu-latest]
node: [14.x, 16.x, 18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline
- name: Lint
run: yarn lint
test:
name: Testing
strategy:
matrix:
os: [ubuntu-latest]
node: [14.x, 16.x, 18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline
- name: Jest Specs
run: yarn test