-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
50 lines (40 loc) · 1.2 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
name: DP大师 CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: dp-master-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
defaults:
run:
working-directory: site
steps:
- name: Checkout
uses: actions/checkout@v7
with:
# routeLastModified is derived from git log, so a shallow clone is not deterministic.
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
package_json_file: site/package.json
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version-file: site/.node-version
cache: pnpm
cache-dependency-path: site/pnpm-lock.yaml
- name: Install locked dependencies
run: pnpm install --frozen-lockfile
- name: Install browser engines
run: pnpm exec playwright install --with-deps chromium firefox webkit
- name: Verify content, tests, lint, build, browser routes, and assets
run: pnpm verify
- name: Ensure generated content is committed
run: git diff --exit-code -- src/data/problems.ts