-
Notifications
You must be signed in to change notification settings - Fork 4
125 lines (113 loc) · 3.87 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Wave CI
on:
push:
branches:
- '**'
- '!refs/tags/.*'
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- mkdocs.yml
- '*.md'
- .github/workflows/website_preview.yml
- .github/workflows/website_deploy.yml
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- 'docs/**'
- mkdocs.yml
- '*.md'
- .github/workflows/website_preview.yml
- .github/workflows/website_deploy.yml
jobs:
build:
name: Build Wave
if: "github.event == 'push' || github.repository != github.event.pull_request.head.repo.full_name"
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
java_version: [21]
steps:
- name: Environment
run: env | sort
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- name: Setup Java ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java_version}}
distribution: 'temurin'
architecture: x64
cache: gradle
- name: Compile
run: make compile
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
- name: Tests
if: "!contains(github.event.head_commit.message, '[skip test]')"
run: |
make check
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TOWER_CI_AWS_SECRET}}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}
QUAY_USER: "pditommaso+wave_ci_tests"
QUAY_PAT: ${{ secrets.QUAY_PAT }}
AZURECR_USER: ${{ secrets.AZURECR_USER }}
AZURECR_PAT: ${{ secrets.AZURECR_PAT }}
GOOGLECR_KEYS: ${{ secrets.GOOGLECR_KEYS }}
- name: E2E Tests
if: "contains(github.event.head_commit.message, '[release]') || contains(github.event.head_commit.message, '[e2e test]')"
run: |
make e2eTest
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TOWER_CI_AWS_SECRET}}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}
QUAY_USER: ${{ secrets.QUAY_USER }}
QUAY_PAT: ${{ secrets.QUAY_PAT }}
AZURECR_USER: ${{ secrets.AZURECR_USER }}
AZURECR_PAT: ${{ secrets.AZURECR_PAT }}
GOOGLECR_KEYS: ${{ secrets.GOOGLECR_KEYS }}
- name: Cleanup build workspace
if: always()
run: |
sudo rm -rf /home/runner/work/wave/wave/build-workspace
- name: Release
if: "contains(github.event.head_commit.message, '[release]')"
run: |
bash tag-and-push.sh
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TOWER_CI_AWS_SECRET}}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}
QUAY_PAT: ${{ secrets.QUAY_PAT }}
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
- name: Publish tests report
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-jdk-${{ matrix.java_version }}
path: |
**/build/reports/tests
- name : Publish code coverage report
if: success()
uses : actions/upload-artifact@v4
with :
name : code-coverage-reports-jdk-${{ matrix.java_version }}
path : |
**/build/reports/jacoco/test