12
12
branches : [main , dev]
13
13
14
14
jobs :
15
+ # build:
16
+ # runs-on: ubuntu-latest
17
+ # strategy:
18
+ # matrix:
19
+ # jdk: [ 17 ]
20
+ # steps:
21
+ # - name: Checkout repo
22
+ # uses: actions/checkout@v2
23
+ # - name: Set up OpenJDK
24
+ # uses: actions/setup-java@v1
25
+ # with:
26
+ # java-version: ${{ matrix.jdk }}
27
+ # - name: Install python
28
+ # run: sudo apt install -y python3 python3-setuptools python3-pip
29
+ # - name: Update pip
30
+ # run: pip3 install --upgrade pip
31
+ # - name: Grant execute permission for gradlew
32
+ # run: chmod +x gradlew
33
+ # - name: Build with Gradle
34
+ # run: ./gradlew clean build
15
35
build :
16
- runs-on : ubuntu-latest
17
- strategy :
18
- matrix :
19
- jdk : [ 17 ]
20
- steps :
21
- - name : Checkout repo
22
- uses : actions/checkout@v2
23
- - name : Set up OpenJDK
24
- uses : actions/setup-java@v1
25
- with :
26
- java-version : ${{ matrix.jdk }}
27
- - name : Install python
28
- run : sudo apt install -y python3 python3-setuptools python3-pip
29
- - name : Update pip
30
- run : pip3 install --upgrade pip
31
- - name : Grant execute permission for gradlew
32
- run : chmod +x gradlew
33
- - name : Build with Gradle
34
- run : ./gradlew clean build
35
- test :
36
36
strategy :
37
37
matrix :
38
38
os : [ubuntu-latest, windows-latest, macos-latest]
51
51
with :
52
52
python-version : ${{ matrix.python-version }}
53
53
- name : Get Python location
54
- run : python -c "import os, sys; print(os.path.dirname( sys.executable) )"
54
+ run : python -c "import os, sys; print(sys.executable)"
55
55
- name : Update pip
56
56
run : python3 -m pip install --upgrade pip
57
57
- name : Grant execute permission for gradlew
@@ -60,10 +60,10 @@ jobs:
60
60
run : ./gradlew clean
61
61
- if : matrix.os == 'windows-latest'
62
62
name : Test with Gradle on Windows
63
- run : ./gradlew test -DapplicationProperties="src\test\resources\test-config\application-test-windows.properties"
63
+ run : ./gradlew build -DapplicationProperties="src\test\resources\test-config\application-test-windows.properties"
64
64
- if : matrix.os != 'windows-latest'
65
65
name : Test with Gradle on ${{ matrix.os }}
66
- run : ./gradlew test -DapplicationProperties="src/test/resources/test-config/application-test.properties"
66
+ run : ./gradlew build -DapplicationProperties="src/test/resources/test-config/application-test.properties"
67
67
- name : Generate report
68
68
run : ./gradlew jacocoTestReport
69
69
- name : Codecov
0 commit comments