-
Notifications
You must be signed in to change notification settings - Fork 17
75 lines (71 loc) · 1.8 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
name: CI
env:
PYTHON_VERSION: "3.8"
GO_VERSION: "1.19"
on:
push:
jobs:
examples_curl:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Deploy Ixia-C
run: |
sed -n '57,61p' readme.md > deploy.sh
sh deploy.sh
- name: Setup and run tests
run: |
sed -n '90,95p' readme.md > test.sh
sh test.sh
- name: Get container logs
if: always()
run: |
cd conformance && ./do.sh topo logs
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
with:
name: examples_curl
path: |
logs
examples_go_py:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Deploy Ixia-C
run: |
sed -n '57,61p' readme.md > deploy.sh
sh deploy.sh
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup and run tests
run: |
sed -n '67,78p' readme.md > test.sh
sh test.sh
- name: Get container logs
if: always()
run: |
cd conformance && ./do.sh topo logs
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
with:
name: examples_go_py
path: |
logs