File tree Expand file tree Collapse file tree 3 files changed +32
-11
lines changed
Expand file tree Collapse file tree 3 files changed +32
-11
lines changed Original file line number Diff line number Diff line change 1+ name : Actions
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - develop
9+
10+ jobs :
11+ # https://github.com/rhysd/actionlint/blob/v1.7.10/docs/usage.md#use-actionlint-on-github-actions
12+ actionlint :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v5
16+ - name : Check workflow files
17+ uses : docker://rhysd/actionlint:latest
18+ with :
19+ args : -color
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ jobs:
2222 - name : Validate local docker compose files
2323 run : |
2424 DC=$(COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.yml config --quiet 2>&1)
25- [ -z "$DC" ] || { echo $DC; exit 1; }
25+ [ -z "$DC" ] || { echo " $DC" ; exit 1; }
2626
2727 - name : Validate server docker compose files
2828 run : |
2929 DC=$(COMPOSE_SERVER_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml config --quiet 2>&1)
30- [ -z "$DC" ] || { echo $DC; exit 1; }
30+ [ -z "$DC" ] || { echo " $DC" ; exit 1; }
3131 DC=$(COMPOSE_SERVER_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml --file templates/${{ matrix.version }}/docker-compose.dev.yml config --quiet 2>&1)
32- [ -z "$DC" ] || { echo $DC; exit 1; }
32+ [ -z "$DC" ] || { echo " $DC" ; exit 1; }
3333 DC=$(COMPOSE_SERVER_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml --file templates/${{ matrix.version }}/docker-compose.redirect.yml config --quiet 2>&1)
34- [ -z "$DC" ] || { echo $DC; exit 1; }
34+ [ -z "$DC" ] || { echo " $DC" ; exit 1; }
Original file line number Diff line number Diff line change @@ -3,16 +3,18 @@ on: pull_request
33name : Workflow templates
44
55jobs :
6- check-yaml :
6+ # https://github.com/rhysd/actionlint/blob/v1.7.10/docs/usage.md#use-actionlint-on-github-actions
7+ actionlint :
78 runs-on : ubuntu-latest
89 steps :
910 - uses : actions/checkout@v5
10-
11- - run : |
12- docker pull mikefarah/yq
13- for f in $(find github/workflows/ -name '*.yaml'); do
14- docker run --rm --volume "$PWD":/workdir mikefarah/yq "$f" > /dev/null
15- done
11+ - name : Check workflow files
12+ # uses: docker://rhysd/actionlint:latest
13+ # with:
14+ # args: -color github/workflows/*.yaml github/workflows/*/*.yaml
15+ # @todo Can we make globbing work in `with.args`?
16+ run :
17+ docker run --rm --volume "$PWD":/repo --workdir /repo rhysd/actionlint:latest -color github/workflows/*.yaml github/workflows/*/*.yaml
1618
1719 shellcheck :
1820 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments