-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1014 Bytes
/
Copy pathintegration-test.yaml
File metadata and controls
49 lines (38 loc) · 1014 Bytes
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
name: Integraton Test
on:
push:
branches: [ "main"]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
integration-test:
runs-on: ubuntu-latest
container:
image: ubuntu
options: --privileged
strategy:
matrix:
go: [ '1.25.5' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: |
apt-get update
apt-get install -y make build-essential ca-certificates
update-ca-certificates
- name: Make
run: make
- name: Copy Bin to Integration Test Directory
run: cp build/nsctl integration-test/nsctl
- name: Add netns Folder
run: mkdir -p /var/run/netns
- name: Namespace Test
run: cd integration-test/namespace && ./test.sh
- name: Remove netns Folder
run: rm -rf /var/run/netns