forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (91 loc) · 3.9 KB
/
master.yml
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
92
93
94
95
96
97
98
99
100
101
name: master
on:
push:
paths-ignore:
- 'doc/**'
- 'documentation/**'
- '*.md'
- '*.yml'
- '.github/workflows/**'
branches:
- master
permissions:
contents: read
jobs:
api_check:
runs-on: ubuntu-latest
if: github.repository == 'kotest/kotest'
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/gradle-build-action@v2
- name: Run api check
run: ./gradlew apiCheck
linux:
needs: api_check
runs-on: ubuntu-latest
if: github.repository == 'kotest/kotest'
strategy:
fail-fast: false
matrix:
target:
- jvmTest publishJvmPublicationToDeployRepository publishKotlinMultiplatformPublicationToDeployRepository publishKotestBomPublicationToDeployRepository
- jsTest publishJsPublicationToDeployRepository
- linuxX64Test publishLinuxX64PublicationToDeployRepository
- linuxArm64TestKlibrary publishLinuxArm64PublicationToDeployRepository
- androidNativeX86TestKlibrary androidNativeX64TestKlibrary publishAndroidNativeX64PublicationToDeployRepository publishAndroidNativeX86PublicationToDeployRepository
- androidNativeArm32TestKlibrary androidNativeArm64TestKlibrary publishAndroidNativeArm32PublicationToDeployRepository publishAndroidNativeArm64PublicationToDeployRepository
steps:
- uses: kotest/kotest-action@master
with:
gradle-command: ${{ matrix.target }}
java-version: "17"
mac:
needs: api_check
runs-on: macos-latest
if: github.repository == 'kotest/kotest'
strategy:
fail-fast: false
matrix:
target:
- macosX64Test publishMacosX64PublicationToDeployRepository
- macosArm64Test publishMacosArm64PublicationToDeployRepository
- iosX64Test publishIosX64PublicationToDeployRepository
- iosSimulatorArm64Test publishIosSimulatorArm64PublicationToDeployRepository
- iosArm64TestKlibrary publishIosArm64PublicationToDeployRepository
- iosArm32TestKlibrary publishIosArm32PublicationToDeployRepository
- tvosX64Test publishTvosX64PublicationToDeployRepository
- tvosArm64TestKlibrary publishTvosArm64PublicationToDeployRepository
- watchosArm32TestKlibrary publishWatchosArm32PublicationToDeployRepository
- watchosArm64TestKlibrary publishWatchosArm64PublicationToDeployRepository
- watchosX86Test publishWatchosX86PublicationToDeployRepository
- watchosX64Test publishWatchosX64PublicationToDeployRepository
- watchosSimulatorArm64Test publishWatchosSimulatorArm64PublicationToDeployRepository
- tvosSimulatorArm64Test publishTvosSimulatorArm64PublicationToDeployRepository
steps:
- uses: kotest/kotest-action@master
with:
gradle-command: ${{ matrix.target }}
java-version: "17"
windows:
needs: api_check
runs-on: windows-latest
if: github.repository == 'kotest/kotest'
steps:
- uses: kotest/kotest-action@master
with:
gradle-command: "mingwX64Test publishMingwX64PublicationToDeployRepository"
java-version: "17"
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}