-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 1.35 KB
/
integration.yml
File metadata and controls
54 lines (46 loc) · 1.35 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
53
54
name: Integration Tests
on:
workflow_run:
workflows: ["Build Latest"]
types: [completed]
permissions:
contents: read
actions: read
jobs:
integration-test:
name: Integration Tests
runs-on: buildjet-2vcpu-ubuntu-2204-arm
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
include:
- container: ghcr.io/viamrobotics/rdk-devenv:arm64-cache
TARGET: pi
container:
image: ${{ matrix.container }}
options: --platform linux/arm64
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Download AppImage artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: ${{ github.head_ref || github.ref_name }}
workflow_conclusion: success
allow_forks: true
name: viam-csi-${{ matrix.TARGET }}-appimage
path: ./etc
- name: Make AppImage executable
run: chmod +x ./etc/*.AppImage
- name: Extract AppImage
run: |
cd ./etc
./*.AppImage --appimage-extract
chmod +x squashfs-root/AppRun
- name: Run integration tests
run: |
cd tests/integration
export VIAM_CSI_DEVICE=${{ matrix.TARGET }}
export VIAM_CSI_TEST_MODE=1
go test -v -timeout 10m