Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Lint & Test
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v4

# Use Node 20 (required for @typescript-eslint v8 / structuredClone)
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Setup
run: |
npm install
npm run build
node-version: 20
cache: 'npm'

- name: Install deps (clean)
run: npm ci

- name: Run eslint
run: |
npm run lint
run: npm run lint

- name: Run tests
run: |
npm run test
run: npm test
Loading