Skip to content

add CI

add CI #2

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
merge_group:
types: [checks_requested]
env:
node-version: 22
permissions:
contents: read # to fetch code (actions/checkout)
# Cancel ongoing workflow runs if a new one is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: npm
- run: npm ci
- run: npm run check
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: npm
- run: npm ci
- run: npm run lint
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: npm
- run: npm ci
- run: npm run build