Debian Codegraph @

.github/workflows/nightly.yml

raw
1 name: Nightly
2 on:
3 schedule:
4 - cron: '0 0 * * *' # Every day at midnight
5 pull_request:
6 paths:
7 - '.github/workflows/nightly.yml'
8
9 # This nightly test helps us to track changes on containerd on daily basis
10 # and enable us to quickly fix snapshotter when some of recent changes on
11 # containerd cause incompatibility with this snapshotter.
12 #
13 # TODO1(ktock): Output binaries if needed.
14 # TODO2(ktock): Ideally, this test should be invoked in containerd/containerd's CI on each PR.
15 # This will make sure that each commit merged into containerd/containerd safely
16 # works with stargz snapshotter.
17
18 env:
19 DOCKER_BUILDKIT: 1
20 DOCKER_BUILD_ARGS: --build-arg=CONTAINERD_VERSION=main # do tests with the latest containerd
21
22 jobs:
23 integration:
24 runs-on: ubuntu-22.04
25 name: Integration
26 steps:
27 - name: Install htpasswd for setting up private registry
28 run: sudo apt-get update -y && sudo apt-get --no-install-recommends install -y apache2-utils
29 - uses: actions/checkout@v3
30 - name: Run integration test
31 run: make integration
32
33 test-optimize:
34 runs-on: ubuntu-22.04
35 name: Optimize
36 steps:
37 - name: Install htpasswd for setting up private registry
38 run: sudo apt-get update -y && sudo apt-get --no-install-recommends install -y apache2-utils
39 - uses: actions/checkout@v3
40 - name: Run test for optimize subcommand of ctr-remote
41 run: make test-optimize
42
43 test-kind:
44 runs-on: ubuntu-22.04
45 name: Kind
46 steps:
47 - name: Install htpasswd for setting up private registry
48 run: sudo apt-get update -y && sudo apt-get --no-install-recommends install -y apache2-utils
49 - uses: actions/checkout@v3
50 - name: Run test for pulling image from private registry on Kubernetes
51 run: make test-kind
52
53 test-criauth:
54 runs-on: ubuntu-22.04
55 name: CRIAuth
56 steps:
57 - name: Install htpasswd for setting up private registry
58 run: sudo apt-get update -y && sudo apt-get --no-install-recommends install -y apache2-utils
59 - uses: actions/checkout@v3
60 - name: Run test for pulling image from private registry on Kubernetes
61 run: make test-criauth
62
63 test-cri-containerd:
64 runs-on: ubuntu-22.04
65 name: CRIValidationContainerd
66 steps:
67 - uses: actions/checkout@v3
68 - name: Varidate the runtime through CRI with containerd
69 run: make test-cri-containerd
70
71 test-cri-o:
72 runs-on: ubuntu-18.04
73 name: CRIValidationCRIO
74 steps:
75 - uses: actions/checkout@v3
76 - name: Varidate the runtime through CRI with CRI-O
77 env:
78 DOCKER_BUILD_ARGS: "--build-arg=RUNC_VERSION=v1.0.3"
79 run: make test-cri-o
80
81 test-k3s:
82 runs-on: ubuntu-22.04
83 name: K3S
84 steps:
85 - uses: actions/setup-go@v3
86 with:
87 go-version: '1.19.x'
88 - name: Install k3d
89 run: |
90 wget -q -O - https://raw.githubusercontent.com/rancher/k3d/v5.0.0/install.sh | bash
91 - name: Install htpasswd for setting up private registry
92 run: sudo apt-get update -y && sudo apt-get --no-install-recommends install -y apache2-utils
93 - name: Install yq
94 run: |
95 sudo wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.9.3/yq_linux_amd64
96 sudo chmod +x /usr/local/bin/yq
97 - uses: actions/checkout@v3
98 - name: Run test with k3s
99 run: make test-k3s