-
Notifications
You must be signed in to change notification settings - Fork 717
49 lines (45 loc) · 1.38 KB
/
build.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
name: build
on:
# Run on PRs and pushes to the default branch.
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Run build check every day at 3 AM PST.
- cron: "0 11 * * 0"
# Declare default permissions as read only.
permissions: read-all
env:
# Configure analytics reporting for pub.
PUB_ENVIRONMENT: bot.github
# The Node version to use for site infra. Generally should be the latest LTS.
NODE_VERSION: '22'
jobs:
build:
name: Build site and check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
with:
sdk: stable
- name: Fetch Dart packages
run: dart pub get
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install Node dependencies
run: pnpm install
- name: Build site
run: dart run dart_site build
- name: Check for broken Markdown links
run: dart run dart_site check-link-references
- name: Check internal site links are functional
run: dart run dart_site check-links