Skip to content

chore: bump checkout to v6 and update CI workflows #120

chore: bump checkout to v6 and update CI workflows

chore: bump checkout to v6 and update CI workflows #120

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- run: corepack enable
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- run: yarn test
prettier:
name: Check Prettier
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- run: corepack enable
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- run: yarn prettier --check 'api/**/*'
lint:
name: Lint JavaScript/TypeScript
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- run: corepack enable
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- run: yarn lint
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- run: corepack enable
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- run: CI=false yarn build