-
Notifications
You must be signed in to change notification settings - Fork 77
60 lines (45 loc) · 1.61 KB
/
springwolf-addons.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
name: springwolf-addons
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
addon: [ "common-model-converters", "generic-binding", "json-schema", "kotlinx-serialization-model-converter" ]
env:
addon: springwolf-add-ons/springwolf-${{ matrix.addon }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Check formatting (before running tests) on add-on
run: ./gradlew -p ${{ env.addon }} spotlessCheck
- name: Run unit tests
run: ./gradlew -p ${{ env.addon }} test
- name: Run build, check, analyzeDependencies on add-on
run: ./gradlew -p ${{ env.addon }} build
- name: Publish package
if: github.ref == 'refs/heads/master'
run: ./gradlew -p ${{ env.addon }} publish
env:
ORG_GRADLE_PROJECT_SNAPSHOT: true
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGKEY}}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}