-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (45 loc) · 1.4 KB
/
build.yml
File metadata and controls
50 lines (45 loc) · 1.4 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
name: Build And Upload
on:
push:
tags:
- "*"
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
test-type: integration
- os: macos-latest
test-type: unit
- os: windows-latest
test-type: unit
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
if: matrix.os != 'windows-latest'
# Unit tests only (no Docker required) - runs on all platforms
- name: Run unit tests
if: matrix.test-type == 'unit'
run: ./gradlew test --tests "io.github.intisy.docker.ModelTest" --tests "io.github.intisy.docker.DockerClientBuilderTest" --info
shell: bash
# Integration tests (Docker required) - Linux only where Docker is pre-installed
- name: Run all tests (Linux with Docker)
if: matrix.test-type == 'integration'
run: ./gradlew test --info
build:
needs: test
uses: intisy/workflows/.github/workflows/build.yml@main
with:
ref_name: ${{ github.ref_name }}
secrets:
envPAT: ${{ secrets.PAT }}