-
Notifications
You must be signed in to change notification settings - Fork 129
41 lines (38 loc) · 1.09 KB
/
test.yml
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
35
36
37
38
39
40
41
on:
push: {}
pull_request: {}
workflow_dispatch: {}
name: Test
jobs:
alejandra:
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
steps:
- uses: actions/checkout@v4 # Check out repo so we can lint it
- name: Setup Cache
uses: namespacelabs/[email protected]
with:
path: |
/nix
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: alejandra check
run: nix develop -c alejandra --check .
prettier:
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
steps:
- uses: actions/checkout@v4 # Check out repo so we can lint it
- name: Setup Cache
uses: namespacelabs/[email protected]
with:
path: |
/nix
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: npm install
run: nix develop -c npm install
- name: prettier check
run: nix develop -c npm exec -- prettier --check 'src/**/*.ts'