Debian Codegraph @

.github/workflows/linux-integration-test.yml

raw
1 name: Linux Integration Test
2
3 on:
4 push:
5 branches:
6 - "*"
7 pull_request:
8 branches:
9 - "*"
10
11 jobs:
12 build:
13 strategy:
14 matrix:
15 go-version: ["1.18", "1.19", "1.20"]
16 runs-on: ubuntu-latest
17
18 steps:
19 - name: Set up Go
20 uses: actions/setup-go@v3
21 with:
22 go-version: ${{ matrix.go-version }}
23 id: go
24
25 - name: Check out code into the Go module directory
26 uses: actions/checkout@v3
27
28 - name: Load the vhost_vsock kernel module
29 run: sudo modprobe vhost_vsock
30
31 - name: Change the permissions of /dev/vsock for integration tests
32 run: sudo chmod 666 /dev/vsock
33
34 - name: Run integration tests
35 run: go test -v -race -run TestIntegration ./...