-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.64 KB
/
lint.yaml
File metadata and controls
60 lines (57 loc) · 1.64 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Lint
on:
pull_request:
branches:
- main
jobs:
alejandra:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup Nix Cache
uses: actions/cache@v4
with:
path: /nix
key: nix-${{ runner.os }}-${{ hashFiles('flake.lock') }}
restore-keys: |
nix-${{ runner.os }}-
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: alejandra check
run: nix develop -c alejandra --check .
eslint:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup Nix Cache
uses: actions/cache@v4
with:
path: /nix
key: nix-${{ runner.os }}-${{ hashFiles('flake.lock') }}
restore-keys: |
nix-${{ runner.os }}-
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup pnpm Cache
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-modules-${{ runner.os }}-
- name: pnpm install in /cli
run: nix develop -c pnpm install
working-directory: cli
- name: lint in /cli
run: nix develop -c pnpm lint
working-directory: cli
- name: pnpm install in /www
run: nix develop -c pnpm install
working-directory: www
- name: lint in /www
run: nix develop -c pnpm lint
working-directory: www