-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (45 loc) · 1.59 KB
/
gradle.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
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build and Test
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
- 'dev**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest, windows-latest]
jdk: [ 21 ] # (open)JDK releases
steps:
- uses: actions/checkout@v4
- name: Set up openJDK version
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu' # =openJDK
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build and Test with Gradle
run: ./gradlew -Dprofile=verbose build
- name: Do one Coveralls test report
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 21
run: ./gradlew jacocoTestReport coveralls
- name: Docker build and test
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 21
run: |
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl_4.0.0_amd64.deb
sudo dpkg -i hurl_4.0.0_amd64.deb
time bash ./docker/test_docker.sh
shell: bash