-
Notifications
You must be signed in to change notification settings - Fork 17
85 lines (78 loc) · 2.43 KB
/
ci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Aklite CI Tests
on:
push:
pull_request:
branches:
- main
jobs:
clang:
name: Clang Format And Tidy
runs-on: ubuntu-latest
container:
image: foundries/aklite-dev
env:
CXX: clang++
CC: clang
CCACHE_DIR: /tmp/ccache
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory /__w/aktualizr-lite/aktualizr-lite
- run: git submodule update --init --recursive
- name: config
run: make -f dev-flow.mk config
- name: format
run: make -f dev-flow.mk format
- name: tidy
run: make -f dev-flow.mk tidy
garage-tools:
name: Build Garage Tools
runs-on: ubuntu-latest
container:
image: foundries/aklite-dev
env:
CXX: clang++
CC: clang
CCACHE_DIR: /tmp/ccache
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory /__w/aktualizr-lite/aktualizr-lite
- run: git submodule update --init --recursive
- name: build garage tools
run: make -f dev-flow.mk garage-tools
- name: check garage tools
run: |
if [[ ! -f build-garage/aktualizr/src/sota_tools/garage-sign/bin/garage-sign ]]; then
echo "Failed to build garage-sign!"
exit 1
fi
if [[ ! -f build-garage/aktualizr/src/sota_tools/garage-push ]]; then
echo "Failed to build garage-push!"
exit 1
fi
test:
name: Tests
runs-on: ubuntu-latest
container:
image: foundries/aklite-dev
env:
CXX: clang++
CC: clang
CCACHE_DIR: /tmp/ccache
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory /__w/aktualizr-lite/aktualizr-lite
- run: git submodule update --init --recursive
- name: test
run: make -f dev-flow.mk config build test
e2e-test:
name: End-to-end tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git config --global --add safe.directory /__w/aktualizr-lite/aktualizr-lite
- run: git submodule update --init --recursive
- run: ./dev-shell-e2e-test.sh make -f dev-flow.mk config build
- run: ./dev-shell-e2e-test.sh pytest e2e-test.py -k 'test_incremental_updates[True-False]'
env:
FACTORY: ${{ secrets.E2E_TEST_FACTORY }}
USER_TOKEN: ${{ secrets.E2E_TEST_USER_TOKEN }}