File tree Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55echo " --- Pre install"
66source .buildkite/scripts/pre-install-command.sh
77add_bin_path
8- go install mvdan.cc/gofumpt@latest
8+ go install mvdan.cc/gofumpt@v0.4.0
99go install github.com/elastic/go-licenser@latest
1010
1111echo " --- verify"
Original file line number Diff line number Diff line change 1+ # CI workflows
2+ /.github /workflows / @ elastic/observablt-ci
Original file line number Diff line number Diff line change 1+ ---
2+ version : 2
3+ updates :
4+ - package-ecosystem : " github-actions"
5+ directories :
6+ - " /"
7+ schedule :
8+ interval : " weekly"
9+ day : " sunday"
10+ time : " 22:00"
11+ groups :
12+ github-actions :
13+ patterns :
14+ - " *"
Original file line number Diff line number Diff line change 1+ ---
2+ name : ci
3+
4+ on :
5+ push :
6+ branches :
7+ - main
8+ pull_request :
9+ merge_group :
10+
11+ # limit the access of the generated GITHUB_TOKEN
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ lint :
17+ runs-on : ubuntu-22.04
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-go@v5
21+ with :
22+ go-version-file : go.mod
23+ - run : |
24+ go install mvdan.cc/gofumpt@v0.4.0
25+ go install github.com/elastic/go-licenser@latest
26+ - run : |
27+ go mod verify
28+ go-licenser -d
29+ [ "$(gofumpt -l $(find . -name "*.go") | wc -l)" -gt 0 ] && exit 1 || echo "passed"
30+
31+ test :
32+ strategy :
33+ fail-fast : false
34+ matrix :
35+ os : ['ubuntu-22.04', 'windows-2022']
36+ runs-on : ${{ matrix.os }}
37+ steps :
38+ - uses : actions/checkout@v4
39+ - uses : actions/setup-go@v5
40+ with :
41+ go-version-file : go.mod
42+ - run : go test -v ./...
You can’t perform that action at this time.
0 commit comments