-
Notifications
You must be signed in to change notification settings - Fork 32
48 lines (38 loc) · 1.09 KB
/
dag-check.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
# Build generated files with JSonnet and run all DAG scripts
name: DAG Check
on:
pull_request:
branches: [master]
types: [opened, synchronize, edited]
push:
branches: [master]
workflow_dispatch: {}
jobs:
dags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Install JSonnet
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Build JSonnet
run: |
scripts/gen-configs.sh
- uses: actions/setup-python@v4
with:
# Note: this should match Cloud Composer
# https://cloud.google.com/composer/docs/concepts/versioning/composer-versions
python-version: '3.8'
- name: Install Python dependencies
run: pip install -r .github/requirements.txt
- name: Run DAGs
run: |
scripts/dag-check.sh