37 lines
755 B
YAML
37 lines
755 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- name: Format code
|
|
run: npm run format
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
- name: Run test
|
|
run: npm run test
|
|
|
|
dry-run:
|
|
name: Dry-Run
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- run: npm ci
|
|
- name: Validate JSON, using a valid file
|
|
uses: ./
|
|
with:
|
|
json-file: test/valid.json
|
|
- name: Validate JSON, using an invalid file
|
|
uses: ./
|
|
with:
|
|
json-file: test/invalid.json
|