-
Notifications
You must be signed in to change notification settings - Fork 97
60 lines (46 loc) · 1.34 KB
/
tests-arm64.yml
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
55
56
57
58
59
60
name: Run GoTest
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-arm64-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test ARM64
runs-on: arm64_runner
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install System Dependencies
run: sudo apt-get install -y pkg-config gcc libseccomp-dev
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.6
- name: Install dependencies
run: go mod tidy
- name: Compile library
run: bash ./build/build_arm64.sh
- name: Setup Nodejs20.11.1
uses: actions/setup-node@v3
with:
node-version: '20.11.1'
- name: Setup Python3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Link Python3.10
run: sudo ln -sf "$(which python3.10)" /usr/local/bin/python3
- name: Install Python dependencies
run: pip install httpx==0.27.2 requests==2.32.3 jinja2==3.0.3
- name: Link Go
run: sudo ln -s "$(which go)" /usr/local/bin/go
- name: Run Intgeration tests
run: sudo go test -timeout 120s -v ./tests/integration_tests/...
env:
PYTHON_PATH: /usr/bin/python3.10