45 lines
786 B
YAML
45 lines
786 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: read
|
|
|
|
jobs:
|
|
continuous-integration:
|
|
name: Continuous Integration
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
id: setup-node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .node-version
|
|
cache: npm
|
|
|
|
- name: Install Dependencies
|
|
id: install
|
|
run: npm ci
|
|
|
|
- name: Check Format
|
|
id: format-check
|
|
run: npm run format:check
|
|
|
|
- name: Lint
|
|
id: lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
id: test
|
|
run: npm run ci-test
|