-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (57 loc) · 1.36 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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
unit_tests:
runs-on: ubuntu-22.04
container:
image: erlang:24.2.2
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Compile
run: make compile
-
name: Run unit tests
run: make test_unit
common_tests:
runs-on: ubuntu-22.04
container:
image: erlang:24.2.2
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Compile
run: |
make compile
make release
-
name: Prepate cloud gate
run: |
apt-get update -y && apt-get install python3-pip -y
git config --global url.https://github.com/.insteadOf git://github.com/
mkdir _build/ct-tests
git clone https://github.com/openworkload/swm-cloud-gate.git _build/ct-tests/swm-cloud-gate
ls -l _build/ct-tests
cd _build/ct-tests/swm-cloud-gate
make prepare-venv
. .venv/bin/activate
-
name: Generate keys
run: |
export USER=test
./scripts/setup-skyport-dev.linux
-
name: Run ct tests
run: |
export SWM_GATE_DIR=$(pwd)/_build/ct-tests/swm-cloud-gate
make test_ct