-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (75 loc) · 2.28 KB
/
build.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
- name: Functional Tests
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
Windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
macOS:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
publish_snapshot_artifacts:
name: Publish Snapshot Artifacts
needs: linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ciscoo/cxf-codegen-gradle' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Publish
uses: ./.github/actions/run-gradle
env:
ORG_GRADLE_PROJECT_sonatypeSnapshotsUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypeSnapshotsPassword: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publishAllPublicationsToSonatypeSnapshotsRepository -x check
update_snapshot_documentation:
name: Update Snapshot Documentation
needs: linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ciscoo/cxf-codegen-gradle' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: 'Publish Snapshot Documentation'
env:
GRGIT_USER: ${{ secrets.GH_TOKEN }}
run: .github/workflows/maybePublishSnapshotDocs.sh