-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (49 loc) · 1.47 KB
/
e2e_checks.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
name: E2E - Test checks
on:
push:
permissions:
contents: read
jobs:
test_e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
sudo add-apt-repository ppa:katharaframework/kathara
sudo apt-get update
sudo apt-get install -y jq kathara
- name: Setup kathara
run: |
echo '{
"image": "kathara/base",
"manager_type": "docker",
"terminal": "/usr/bin/xterm",
"open_terminals": false,
"device_shell": "/bin/bash",
"net_prefix": "kathara",
"device_prefix": "kathara",
"debug_level": "INFO",
"print_startup_log": true,
"enable_ipv6": false,
"last_checked": 1721834897.2415252,
"hosthome_mount": false,
"shared_mount": true,
"image_update_policy": "Prompt",
"shared_cds": 1,
"remote_url": null,
"cert_path": null,
"network_plugin": "kathara/katharanp_vde"
}' > ~/.config/kathara.conf
- name: Build binary for e2e
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: build --single-target --clean --snapshot --config .goreleaser-ci.yaml
- name: Run e2e tests
run: |
./scripts/run_e2e_tests.sh