-
Notifications
You must be signed in to change notification settings - Fork 27
68 lines (55 loc) · 2.32 KB
/
integration-linux.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: integration tests (linux)
on:
push:
branches: [ duct-tape ]
pull_request:
branches: [ duct-tape ]
workflow_dispatch:
permissions: read-all
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: linux-x64-latest-more-storage
steps:
- uses: actions/setup-go@v5
with:
go-version: ^1.23
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-gopkgmod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-gopkgmod
- name: Install required tools
run: |
set -ex
mkdir -p $HOME/bin
curl -Lo $HOME/bin/skaffold https://storage.googleapis.com/skaffold/builds/latest/skaffold-linux-amd64
curl -Lo $HOME/bin/container-structure-test https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64
curl -Lo $HOME/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64
curl -Lo $HOME/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.0/bin/linux/amd64/kubectl
chmod +x $HOME/bin/*
echo "$HOME/bin" >> $GITHUB_PATH
- name: Run nodejs helper tests
run: |
set -ex
(cd nodejs/helper-image; go test .)
- name: Run python helper tests
run: |
set -ex
(cd python/helper-image/launcher; go test .)
- name: Run image build
run: |
set -ex
# Create a kind configuration to use the docker daemon's configured registry-mirrors.
docker system info --format '{{printf "apiVersion: kind.x-k8s.io/v1alpha4\nkind: Cluster\ncontainerdConfigPatches:\n"}}{{range $reg, $config := .RegistryConfig.IndexConfigs}}{{if $config.Mirrors}}{{printf "- |-\n [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"%s\"]\n endpoint = %q\n" $reg $config.Mirrors}}{{end}}{{end}}' > /tmp/kind.config
# `kind create cluster` is very verbose
kind create cluster --quiet --config /tmp/kind.config
kind get kubeconfig > /tmp/kube.config
# we had `run-its.sh` in `after_success` but it doesn't cause failures
KUBECONFIG=/tmp/kube.config bash ./run-its.sh