-
-
Notifications
You must be signed in to change notification settings - Fork 251
37 lines (36 loc) · 1.12 KB
/
validate-content.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
name: Validate content
on:
push:
paths:
- docs/syntax_and_semantics/compile_time_flags.md
- .github/workflows/validate-content.yml
pull_request:
branches: [master, release/*]
paths:
- docs/syntax_and_semantics/compile_time_flags.md
- .github/workflows/validate-content.yml
schedule:
- cron: '0 5 * * 1' # Every Monday 5 AM UTC
jobs:
validate-flags:
name: Validate flags
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: nightly
- name: Download crystal repo
uses: actions/checkout@v4
with:
repository: crystal-lang/crystal
path: crystal
# If the PR goes against a release branch, we checkout that same release
# branch in the Crystal repo (names are identical).
ref: ${{ (startsWith(github.base_ref, 'release/') && github.base_ref) || 'master' }}
- name: Run test script
run: scripts/validate-flags.sh
env:
STDLIB_SRC: ./crystal/src