-
Notifications
You must be signed in to change notification settings - Fork 287
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and validate devcontainer
uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450
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 {}