forked from redhat-developer/rhdh-local
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (62 loc) · 2.21 KB
/
Copy pathtest.yml
File metadata and controls
70 lines (62 loc) · 2.21 KB
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
name: CI
on:
push:
branches:
- main
- release-1.[0-9]+
pull_request:
branches:
- main
- release-1.[0-9]+
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Lint
# Based on https://github.com/zavoloklom/docker-compose-linter/tree/main?tab=readme-ov-file
run: |
npx --yes dclint .
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
tool:
- docker
- podman
userConfig:
- "false"
- "true"
composeConfig:
- name: "default"
cliArgs: ""
- name: "corporate-proxy"
cliArgs: "-f compose.yaml -f compose-with-corporate-proxy.yaml"
- name: "dynamic-plugins-root"
cliArgs: "-f compose.yaml -f compose-dynamic-plugins-root.yaml"
- name: "orchestrator-workflow"
cliArgs: "-f compose.yaml -f orchestrator/compose.yaml"
- name: "developer-lightspeed"
cliArgs: "-f compose.yaml -f developer-lightspeed/compose.yaml"
name: "${{ matrix.tool }} compose - ${{ matrix.composeConfig.name }}${{ matrix.os != 'ubuntu-24.04' && format(' - {0}', matrix.os) || '' }}${{ matrix.userConfig == 'true' && ' - user config' || '' }}"
runs-on: ${{ matrix.os }}
env:
DOCKER_COMPOSE_VERSION: v5.0.1
PODMAN_IMAGE: quay.io/podman/stable:v5
# The default corporate proxy image is located on registry.redhat.io, which requires authentication.
CORPORATE_PROXY_IMAGE: docker.io/ubuntu/squid:latest
steps:
# Checkout default branch so .github/actions/* exists (release-* push may not include the composite).
- uses: actions/checkout@v6
- uses: ./.github/actions/rhdh-local-compose-test
with:
git_ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
container_tool: ${{ matrix.tool }}
compose_cli_args: ${{ matrix.composeConfig.cliArgs }}
compose_config_name: ${{ matrix.composeConfig.name }}
user_config_enabled: ${{ matrix.userConfig }}