-
Notifications
You must be signed in to change notification settings - Fork 693
51 lines (41 loc) · 1.27 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
name: CI
# Runs build and test on:
# every push that has a change in a file not in the docs folder
# every pull request with main branch as the base that has a change
# in a file not in the docs folder
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Check and build codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 18.x
# Wireit cache
- uses: google/wireit@setup-github-actions-caching/v1
- name: Install dependencies
run: pnpm install
# If you hare having issues post-merge with wireit improperly caching,
# comment this out, push a commit, then re-comment.
# - name: Clear all caches
# run: pnpm clean:cache
- name: Build Code and Examples
run: pnpm run build
# We build in-source files like `examples/one-page/index.html`.
# This check ensures we don't build changes that need committing.
- name: Check generated in-source files
run: git diff --no-ext-diff --quiet --exit-code
- name: Check Code
run: pnpm run check:ci