This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (102 loc) · 3.06 KB
/
pre-merge.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
name: pre-merge
on:
push:
branches:
- 'user/**'
- 'feature/**'
- 'improvement/**'
- 'dependabot/**'
- 'bugfix/**'
- 'w/**'
- 'q/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: run static analysis tools
run: tox -e lint
- name: check helm packaging eve
run: helm lint charts/eve
- name: check helm packaging eve-cron-builder
run: helm lint charts/eve-cron-builder
- name: check helm packaging eve-doc
run: helm lint charts/eve-doc
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: Ensure the release notes compile
run: tox -e relnotes -- test_version
- name: Ensure the doc compiles
run: tox -e doc
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: run unit tests
run: tox -e unit
- name: run system utils tests
run: tox -e testutil
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: run system tests
run: tox -e system
docker-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: run docker-compose build
run: tox -e compose-build
- name: run docker tests
run: tox -e docker
kube-tests:
runs-on: [self-hosted, ubuntu, focal, large]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
uses: ./.github/actions/install-deps
- name: Install docker
uses: ./.github/actions/install-docker
- name: Install kubectl
uses: ./.github/actions/install-kubectl
- uses: engineerd/[email protected]
- name: Setup Kind cluster
run: |
kubectl create role default --verb=get --verb=list --verb=watch --verb=update --verb=create --verb=delete --resource=pods --resource=secrets --resource=configmaps
kubectl create rolebinding default --role=default --serviceaccount=default:default
docker build -t fake-service:testing tests/kube/contexts/simple/fake-service
kind load docker-image fake-service:testing
- name: run kube tests
run: tox -e kube