-
Notifications
You must be signed in to change notification settings - Fork 235
68 lines (59 loc) · 1.67 KB
/
ci.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
62
63
64
65
66
67
68
---
name: CI
permissions: read-all
on:
pull_request:
schedule:
# Run every on Friday to ensure everything works as expected.
- cron: '0 6 * * 5'
jobs:
docker-compose-lint:
name: "Docker Compose self-lint"
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint zammad docker compose file
run: docker compose config
super-linter:
name: "Super Linter"
runs-on: ubuntu-24.04
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint code base
uses: github/super-linter/slim@v7
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: .github/linters
VALIDATE_ALL_CODEBASE: false
VALIDATE_JSCPD: false
VALIDATE_SHELL_SHFMT: false
VALIDATE_YAML_PRETTIER: false
tests:
name: "Run tests with remote docker image"
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
matrix:
module:
- default
- add-cloudflare-tunnel
- add-external-network-to-elasticsearch
- add-external-network-to-nginx
- add-hostport-to-elasticsearch
- add-nginx-proxy-manager
- disable-backup-service
- disable-elasticsearch-service
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull docker compose images
run: docker compose pull
- name: Set up test environment
run: .github/tests/setup/${{ matrix.module }}.sh
- name: Run tests
run: .github/tests/${{ matrix.module }}.sh