-
Notifications
You must be signed in to change notification settings - Fork 285
46 lines (42 loc) · 1.25 KB
/
devcontainer.yaml
File metadata and controls
46 lines (42 loc) · 1.25 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
name: DevContainer
on:
merge_group:
push:
branches: [main]
paths:
- ".devcontainer/**"
- "go.mod"
pull_request:
branches: [main]
paths:
- ".devcontainer/**"
- "go.mod"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build DevContainer
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build and validate devcontainer
uses: devcontainers/ci@b63b30de439b47a52267f241112c5b453b673db5 # v0.3.1900000449
with:
runCmd: |
clang --version
llvm-strip --version
go version
EXPECTED_GO=$(grep '^go ' go.mod | awk '{print $2}')
ACTUAL_GO=$(go version | grep -oP '\d+\.\d+\.\d+')
if [ "$EXPECTED_GO" != "$ACTUAL_GO" ]; then
echo "::error::Go version mismatch: devcontainer has $ACTUAL_GO but go.mod requires $EXPECTED_GO"
exit 1
fi
kubectl version --client
helm version
kind version
grep -rl 'go:generate.*bpf2go' pkg/plugin/ | xargs -I{} go generate {}