-
Notifications
You must be signed in to change notification settings - Fork 28
61 lines (55 loc) · 1.56 KB
/
continuous-integration.yaml
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
name: Run Tests
on: [push, pull_request]
jobs:
test-library:
runs-on: ubuntu-latest
container: ghcr.io/quattor/quattor-test-container:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: yum -y install subversion
- name: run tests
run: .ci-scripts/test-library
env:
TRAVIS_BUILD_DIR: "$GITHUB_WORKSPACE"
TRAVIS_REPO_SLUG: "$GITHUB_REPOSITORY"
TRAVIS_BRANCH: "${GITHUB_HEAD_REF:-master}"
panlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# we need the full repo or HEAD^ does not work
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3
- name: Install dependencies
run: pip install colorama prettytable six
- name: run panlint
run: .ci-scripts/panlint
indentation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# we need the full repo or HEAD^ does not work
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3
- name: run indent checker
run: .ci-scripts/indent
test-templates:
runs-on: ubuntu-latest
container: ghcr.io/quattor/quattor-test-container:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: test templates
run: .ci-scripts/test-templates