File tree Expand file tree Collapse file tree 7 files changed +32
-4
lines changed Expand file tree Collapse file tree 7 files changed +32
-4
lines changed Original file line number Diff line number Diff line change
1
+ yq
2
+ yajsv
3
+ * .json-schema
Original file line number Diff line number Diff line change
1
+ ---
2
+ extends : default
3
+ rules :
4
+ line-length : false
5
+ truthy :
6
+ check-keys : false
Original file line number Diff line number Diff line change
1
+ check : github-workflow.json-schema yajsv yq
2
+ for f in * .yml; do ./yq -o json " $$ f" > " $$ {f%yml}json" ; done
3
+ ./yajsv -s $< * .json
4
+ rm * .json
5
+ command -v yamllint > /dev/null 2>&1 && yamllint .
6
+
7
+ clean :
8
+ rm -rf yq yajsv github-workflow.json-schema
9
+
10
+ .PHONY : check clean
11
+
12
+ yq :
13
+ cd /tmp && GOBIN=$(PWD ) go install github.com/mikefarah/yq/v4@latest
14
+
15
+ yajsv :
16
+ cd /tmp && GOBIN=$(PWD ) go install github.com/neilpa/yajsv@latest
17
+
18
+ github-workflow.json-schema :
19
+ curl -sSLf https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json > $@
Original file line number Diff line number Diff line change 25
25
run : |
26
26
echo 'go_versions=["1.20", "1.19"]' >> "$GITHUB_OUTPUT"
27
27
28
- commit-check :
28
+ commit-check :
29
29
name : Commit Check
30
30
runs-on : ubuntu-latest
31
31
steps :
Original file line number Diff line number Diff line change 21
21
name : Integration Tests
22
22
needs : ['config']
23
23
runs-on : ubuntu-latest
24
- env :
25
24
services :
26
25
# These will be used by a container on the same docker network, so no need to expose ports.
27
26
postgres :
62
61
with :
63
62
platforms : linux/${{ matrix.platform }}
64
63
- name : Make directories on cache miss
65
- run : mkdir -p "$(go env GOMODCACHE)" "$(go env GOCACHE)"
64
+ run : mkdir -p "$(go env GOMODCACHE)" "$(go env GOCACHE)"
66
65
if : ${{ ! steps.cache.outputs.cache-hit }}
67
66
- name : Configure RabbitMQ
68
67
run : |
Original file line number Diff line number Diff line change 39
39
filter_tag="--tag-filter-pattern v4"
40
40
branch=${{ github.event.inputs.branch }}
41
41
echo "discovered branch $branch"
42
- if [[ ${branch%-*} == "release" ]]; then
42
+ if [[ ${branch%-*} == "release" ]]; then
43
43
filter_tag="--tag-filter-pattern v${branch#release-}"
44
44
fi
45
45
Original file line number Diff line number Diff line change
1
+ ---
1
2
name : ' Manage v2 Issues'
2
3
on :
3
4
workflow_dispatch :
You can’t perform that action at this time.
0 commit comments