Skip to content

Commit 5c51753

Browse files
committed
ci: define matrix input using makefile output
1 parent 2d77ba3 commit 5c51753

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,20 @@ jobs:
3434
- run: make dev
3535
- run: make test
3636

37+
define-integration-test-matrix:
38+
runs-on: ubuntu-latest
39+
outputs:
40+
colors: ${{ steps.versions.outputs.versions }}
41+
steps:
42+
- run: |
43+
echo 'versions=$(make -C ./integration print-versions)' >> "$GITHUB_OUTPUT"
44+
3745
integration-test:
3846
runs-on: ubuntu-latest
3947
strategy:
4048
fail-fast: false
4149
matrix:
42-
CONNECT_VERSION:
43-
- preview
44-
- 2025.01.0
45-
- 2024.12.0
46-
- 2024.11.0
47-
- 2024.09.0
48-
- 2024.08.0
49-
- 2024.06.0
50-
- 2024.05.0
51-
- 2024.04.1
52-
- 2024.04.0
53-
- 2024.03.0
54-
- 2024.02.0
55-
- 2024.01.0
56-
- 2023.12.0
57-
- 2023.10.0
58-
- 2023.09.0
59-
- 2023.07.0
60-
- 2023.06.0
61-
- 2023.05.0
62-
- 2023.01.1
63-
- 2023.01.0
64-
- 2022.12.0
65-
- 2022.11.0
50+
CONNECT_VERSION: ${{ needs.define-integration-test-matrix.outputs.versions }}
6651
steps:
6752
- uses: actions/checkout@v4
6853
- uses: docker/setup-buildx-action@v3

integration/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ up-%: build
101101
PYTEST_ARGS="$(PYTEST_ARGS)" \
102102
$(DOCKER_COMPOSE) -p $(PROJECT_NAME)-$(subst .,-,$(CONNECT_VERSION)) up -V --abort-on-container-exit --no-build
103103

104+
print-versions:
105+
@echo $(CONNECT_VERSIONS)
106+
104107
# Show help message.
105108
help:
106109
@echo "Makefile Targets:"
@@ -111,6 +114,7 @@ help:
111114
@echo " up Start Docker Compose for all Connect versions."
112115
@echo " down Tear down Docker resources for all Connect versions."
113116
@echo " clean Clean up the project directory."
117+
@echo " print-versions Show the available Connect versions."
114118
@echo " help Show this help message."
115119
@echo
116120
@echo "Common Usage:"

0 commit comments

Comments
 (0)