-
Notifications
You must be signed in to change notification settings - Fork 57
47 lines (46 loc) · 1.31 KB
/
template.yml
File metadata and controls
47 lines (46 loc) · 1.31 KB
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
name: WalnutChecks
on:
pull_request:
paths:
- 'tasks/*'
- 'workflows/*'
- '.github/workflows/template.yml'
push:
branches:
- 'master'
jobs:
walnut-check:
name: Check Task and Workflow Templates through Walnut
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
with:
path: ControlWorkflows
- uses: actions/setup-go@v2
with:
go-version: '1.15.0'
- uses: actions/checkout@v2
with:
repository: AliceO2Group/Control
ref: 'master'
path: Control
- run: (cd Control; make vendor)
- run: (cd Control; make)
- run: (echo "Checks will be ran against branch ${{ github.ref }}")
- name: Run Walnut checks for TASKS
working-directory: ./Control
run: |
for file in ./../ControlWorkflows/tasks/*.yaml; do
echo "Checking file ${file}"
./bin/walnut check -f task ${file}
done
- name: Run Walnut checks for WORKFLOWS
working-directory: ./Control
run: |
for file in ./../ControlWorkflows/workflows/*.yaml; do
echo "Checking file ${file}"
./bin/walnut check -f workflow ${file}
done