-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (64 loc) · 1.83 KB
/
regression-testing.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
name: Regression Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
# ---------------------------------------------------------------------------
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Display cargo version
run: cargo --version
- name: Try to Build
run: cargo build --verbose
# ---------------------------------------------------------------------------
unit_tests:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run unit tests
run: cargo test --verbose
# ---------------------------------------------------------------------------
acceptance_tests:
needs: unit_tests
runs-on: ubuntu-latest
steps:
- name: Clone platform
uses: actions/checkout@v4
with:
path: 'platform'
- name: Clone platform tests
uses: actions/checkout@v4
with:
repository: Panduza/panduza-platform-tests-core
path: 'tests'
- name: Start Mosquitto
uses: namoshek/mosquitto-github-action@v1
with:
version: '1.6'
ports: '1883:1883 8883:8883'
# certificates: ${{ github.workspace }}/.ci/tls-certificates
# config: ${{ github.workspace }}/.ci/mosquitto.conf
# password-file: ${{ github.workspace}}/.ci/mosquitto.passwd
container-name: 'mqtt'
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install robotframework
# - name: Start Platform
# run: |
# cd platform
# cargo run --release
- name: Tests
run: ls -la $GITHUB_WORKSPACE