-
Notifications
You must be signed in to change notification settings - Fork 2
129 lines (129 loc) · 3.98 KB
/
ci.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Code generated by dhall-to-yaml. DO NOT EDIT.
jobs:
checkDocs:
name: "Rendered 'docs/' is up to date"
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- name: "Check that 'docs' folder is up to date"
run: scripts/ci/check-rendered-site-up-to-date.sh
checkPipeline:
name: Rendered CI pipeline is up to date
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- name: Check that the CI pipeline definition is up-to-date with the dhall configuration
run: scripts/ci/check-rendered-pipeline-up-to-date.sh
dhallFormat:
name: dhall-format
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- env:
CHECK: 'true'
name: Check that dhall files are formatted
run: scripts/dhall-format.sh
dhallLint:
name: dhall-lint
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- env:
CHECK: 'true'
name: Check that dhall files are linted properly
run: scripts/dhall-lint.sh
prettier:
name: Prettier formatting
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- name: Check Prettier formatting
run: scripts/ci/check-prettier.sh
shellcheck:
name: shellcheck
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- name: Lint shell scripts
run: scripts/ci/shellcheck.sh
shfmt:
name: shfmt
runs-on: ubuntu-20.04
steps:
- uses: "actions/checkout@master"
with:
submodules: recursive
- name: Install asdf
uses: "asdf-vm/actions/setup@v1.0.1"
- name: Install asdf plugins
run: scripts/asdf-add-plugins.sh
- name: Install asdf tools versions
run: scripts/ci/asdf-install.sh
- name: Install node packages
run: yarn install
- name: Check that scripts are formatted consistently
run: scripts/ci/shfmt-check.sh
name: CI
on:
pull_request: {}
push: {}