-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.34 KB
/
ci-api-test.yml
File metadata and controls
53 lines (43 loc) · 1.34 KB
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
name: CI API TEST
on:
pull_request:
branches: [ main, release, develop ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Grant execute permission for run-test-mysql-redis.sh
run: chmod +x run-test-mysql-redis.sh
- name: Start MySQL for testing
run: ./run-test-mysql-redis.sh
- name: Test & Build
run: ./gradlew build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
with:
files: ${{ github.workspace }}/build/test-results/**/*.xml
seconds_between_github_reads: 1.0
seconds_between_github_writes: 3.0
secondary_rate_limit_wait_seconds: 90.0
- name: When test fail, comment on that code
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: ${{ github.workspace }}/build/test-results/**/*.xml
token: ${{ github.token }}