-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.07 KB
/
checks.yml
File metadata and controls
36 lines (34 loc) · 1.07 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
name: checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v4
- name: get mise cache directory
shell: bash
run: echo "MISE_CACHE_PATH=$(mise config show.cache.dir 2>/dev/null || echo ~/.local/cache/mise)" >> $GITHUB_ENV
- uses: actions/cache@v5
with:
path: ${{ env.MISE_CACHE_PATH }}
key: ${{ runner.os }}-mise-cache-${{ hashFiles('.mise/**') }}
restore-keys: ${{ runner.os }}-mise-cache-
- name: get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v5
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm lint-check
- run: pnpm test-ci