Skip to content

Add SubscribedEvents #10

Add SubscribedEvents

Add SubscribedEvents #10

name: Continuous Integration
on:
push:
branches:
- 1.x
pull_request:
branches:
- 1.x
permissions:
contents: read
pull-requests: read
jobs:
build:
strategy:
matrix:
node-version:
- 22.x
- 23.x
name: Continuous Integration
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
id: cache-npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ci-npm_${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
ci-npm_${{ matrix.node-version }}-
ci-npm-
- name: List the state of dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
continue-on-error: true
run: npm list
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run format:check
- name: Run Vitest
run: npm run test