Skip to content

Commit 0a5823f

Browse files
authored
Merge branch 'main' into gh-oblt/add-catalog-validate
2 parents 85ad0d5 + 1b385f5 commit 0a5823f

File tree

4 files changed

+59
-1
lines changed

4 files changed

+59
-1
lines changed

.buildkite/scripts/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
echo "--- Pre install"
66
source .buildkite/scripts/pre-install-command.sh
77
add_bin_path
8-
go install mvdan.cc/gofumpt@latest
8+
go install mvdan.cc/gofumpt@v0.4.0
99
go install github.com/elastic/go-licenser@latest
1010

1111
echo "--- verify"

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CI workflows
2+
/.github/workflows/ @elastic/observablt-ci

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
- "*"

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 ./...

0 commit comments

Comments
 (0)