-
Notifications
You must be signed in to change notification settings - Fork 10
91 lines (90 loc) · 2.89 KB
/
compose_test.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# name: Docker Compose CI
# on: # yamllint disable-line rule:truthy
# pull_request:
# branches:
# - main
# paths-ignore:
# - '**/*.md'
# jobs:
# yaml-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install 'yamllint'
# run: sudo apt-get install -y yamllint
# - name: Lint YAML files
# run: yamllint -c .github/yamllint_config.yaml .
# json-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install 'jsonlint' and 'git'
# run: sudo apt install python3-demjson git
# - name: Lint JSON files
# run: >-
# git ls-files -z '*.json' | xargs -0r jsonlint -s --allow=non-portable
# shell-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install 'shellcheck' and 'git'
# run: sudo apt install shellcheck git
# - name: Lint shell files ([ba]sh scripts)
# run: >-
# git ls-files -z '*.sh' '*.bash' '*.ksh' '*.bashrc' '*.bash_profile'
# '*.bash_login' '*.bash_logout' | xargs -0r shellcheck
# javascript-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js v20
# uses: actions/setup-node@v4
# with:
# node-version: v20
# - name: install eslint and default rules
# run: npm install eslint @eslint/js --save-dev
# - name: Lint javascript files
# run: npx eslint --config .github/eslint.config.mjs
# test:
# runs-on: ubuntu-latest
# needs:
# - yaml-lint
# - json-lint
# - shell-lint
# - javascript-lint
# strategy:
# matrix:
# BE_VERSION: [v3, v4]
# ELASTIC_OR_JOBS_ENABLED: ['', true]
# LDAP_ENABLED: ['', true]
# OIDC_ENABLED: ['', true]
# steps:
# - uses: actions/checkout@v4
# - name: Test compose.yaml
# run: |-
# export JOBS_ENABLED=${{ matrix.ELASTIC_OR_JOBS_ENABLED }}
# export ELASTIC_ENABLED=${{ matrix.ELASTIC_OR_JOBS_ENABLED }}
# export LDAP_ENABLED=${{ matrix.LDAP_ENABLED }}
# export OIDC_ENABLED=${{ matrix.OIDC_ENABLED }}
# export BE_VERSION=${{ matrix.BE_VERSION }}
# docker compose --profile '*' up --wait --wait-timeout 300
# test-dev:
# runs-on: ubuntu-latest
# needs:
# - yaml-lint
# - json-lint
# - shell-lint
# - javascript-lint
# strategy:
# matrix:
# BE_VERSION: [v3, v4]
# steps:
# - uses: actions/checkout@v4
# - name: Test DEV compose.yaml
# run: |-
# export BE_VERSION=${{ matrix.BE_VERSION }}
# export JOBS_ENABLED=true
# export ELASTIC_ENABLED=true
# export LDAP_ENABLED=true
# export DEV=true
# docker compose --profile '*' up --wait --wait-timeout 600