Skip to content

Commit 93e4c56

Browse files
authored
Merge pull request #224 from jrha/ci-tests
workflows: Consolidate, update and remove travis references
2 parents 7660d6f + 5ac065c commit 93e4c56

File tree

8 files changed

+61
-56
lines changed

8 files changed

+61
-56
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Run Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test-library:
8+
runs-on: ubuntu-latest
9+
container: ghcr.io/quattor/quattor-test-container:latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Install dependencies
14+
run: dnf -y install subversion
15+
- name: run tests
16+
run: .ci-scripts/test-library
17+
env:
18+
TRAVIS_BUILD_DIR: "$GITHUB_WORKSPACE"
19+
TRAVIS_REPO_SLUG: "$GITHUB_REPOSITORY"
20+
TRAVIS_BRANCH: "${GITHUB_HEAD_REF:-master}"
21+
22+
panlint:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
with:
28+
# we need the full repo or HEAD^ does not work
29+
fetch-depth: 0
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: 3
34+
- name: Install dependencies
35+
run: pip install colorama prettytable six
36+
- name: run panlint
37+
run: .ci-scripts/panlint
38+
39+
indentation:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v4
44+
with:
45+
# we need the full repo or HEAD^ does not work
46+
fetch-depth: 0
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: 3
51+
- name: run indent checker
52+
run: .ci-scripts/indent
53+
54+
test-templates:
55+
runs-on: ubuntu-latest
56+
container: ghcr.io/quattor/quattor-test-container:latest
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v4
60+
- name: test templates
61+
run: .ci-scripts/test-templates

.github/workflows/syntax.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/test_templates.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)