Repository navigation
52 lines (42 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
52 lines (42 loc) · 1.47 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
47
48
49
50
51
52
name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: go test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go env
run: go env
- name: Unit + integration tests (deviceconnectfs)
run: go test ./...
- name: Regression tests (go9p)
run: |
# Keep this to library-level packages so we don't pull in kernel/OS-specific
# test binaries (e.g. cmd/kernel9p-*) from the go9p repo.
go test github.com/lionkov/go9p/p/...
go test github.com/lionkov/go9p/p/srv/...
kernel9p-deviceconnectfs-qemu:
name: kernel9p deviceconnectfs e2e (qemu, arm64)
runs-on: ubuntu-24.04-arm
timeout-minutes: 90
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run kernel9p deviceconnectfs e2e in v9fs/docker
run: |
docker run --rm --privileged --platform linux/arm64 -v "${{ github.workspace }}:/opt/v9fs/deviceconnectfs" -w /opt/v9fs/deviceconnectfs -e V9FS_TEST_KERNEL_TAG="kernel-main" ghcr.io/v9fs/docker:v2.0.0 bash /opt/v9fs/deviceconnectfs/scripts/v9fs/ci-e2e-deviceconnectfs.sh