Skip to content
Merged
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
20 changes: 20 additions & 0 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI setup

description: 'Setup node, pnpm and install project dependencies for CI jobs'

runs:
using: composite
steps:
- name: Set node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
with:
version: 10.28.2

- name: Install dependencies
shell: bash
run: pnpm i --frozen-lockfile
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

permissions:
contents: read

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
Comment thread
lucasgauthier marked this conversation as resolved.
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup environment
uses: ./.github/actions/ci-setup

- name: Lint
run: pnpm lint

typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup environment
uses: ./.github/actions/ci-setup

- name: Typecheck
run: pnpm typecheck

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup environment
uses: ./.github/actions/ci-setup

- name: Test
run: pnpm test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.10.0
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"markdown",
"json",
"jsonc",
"yaml"
"yaml",
"github-actions-workflow"
],

"eslint.workingDirectories": [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dist"
],
"engines": {
"node": ">=24.10.0",
"pnpm": ">=10.28.2"
},
"scripts": {
Expand Down