-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 1.01 KB
/
ci.yml
File metadata and controls
34 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build-check-typescript:
name: Build, check, and test the TypeScript Action
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Install pnpm dependencies
run: nix develop --command pnpm install
- name: Check prettier formatting
run: nix develop --command pnpm run format
- name: Run ESLint
run: nix develop --command pnpm run lint
- name: Run Vitest test suite
run: nix develop --command pnpm run test
- name: Build using tsup
run: nix develop --command pnpm run build
- name: Package using ncc
run: nix develop --command pnpm run package
- name: git status
run: git status --porcelain=v1
- name: Ensure no unstaged changes
run: git diff --exit-code