Skip to content

Commit 8d1110c

Browse files
committed
Update build.yml
1 parent a2e8e49 commit 8d1110c

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,45 @@ on:
44
tags:
55
- "*"
66
jobs:
7-
call-reusable-workflow:
7+
test:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
include:
13+
- os: ubuntu-latest
14+
test-type: integration
15+
- os: macos-latest
16+
test-type: unit
17+
- os: windows-latest
18+
test-type: unit
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up JDK 11
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '11'
27+
distribution: 'temurin'
28+
29+
- name: Grant execute permission for gradlew
30+
run: chmod +x gradlew
31+
if: matrix.os != 'windows-latest'
32+
33+
# Unit tests only (no Docker required) - runs on all platforms
34+
- name: Run unit tests
35+
if: matrix.test-type == 'unit'
36+
run: ./gradlew test --tests "io.github.intisy.docker.ModelTest" --tests "io.github.intisy.docker.DockerClientBuilderTest" --info
37+
shell: bash
38+
39+
# Integration tests (Docker required) - Linux only where Docker is pre-installed
40+
- name: Run all tests (Linux with Docker)
41+
if: matrix.test-type == 'integration'
42+
run: ./gradlew test --info
43+
44+
build:
45+
needs: test
846
uses: intisy/workflows/.github/workflows/build.yml@main
947
with:
1048
ref_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)