-
Notifications
You must be signed in to change notification settings - Fork 75
68 lines (67 loc) · 1.67 KB
/
Copy pathchecks.yaml
File metadata and controls
68 lines (67 loc) · 1.67 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
61
62
63
64
65
66
67
68
name: Checks
permissions:
contents: read
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- "apps/**"
- "packages/**"
- ".github/workflows/**"
push:
branches:
- main
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
setup:
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
checkout_paths: packages apps scripts .github
packages:
name: Process packages
runs-on: ubuntu-latest
needs: setup
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v6
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Fallback checkout (cache miss)
if: steps.setup-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v7
- name: Install Node.js
uses: actions/setup-node@v7
with:
node-version: "24.16.0"
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Fallback install (cache miss)
if: steps.setup-cache.outputs.cache-hit != 'true'
run: pnpm install
- name: Build packages
id: build-packages
run: pnpm run build
- name: Test packages
id: test-packages
run: pnpm run test
- name: Lint packages
id: lint-packages
run: pnpm run lint:all
- name: Type check packages
id: type-check-packages
run: pnpm run types
- name: log-errors-to-slack
uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: failure()