-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (35 loc) · 1.08 KB
/
tests.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
name: ALGOHUB CI
on:
pull_request:
branches:
- develop
permissions:
contents: read
checks: write
pull-requests: write
jobs:
run-test:
runs-on: ubuntu-latest
steps:
- name: Setup DEV_NAME, CREDENTIAL_NAME, CREDENTIAL_PW
run: |
echo "DEV_NAME=${{ secrets.DEV_NAME_TEST }}" >> $GITHUB_ENV
echo "CREDENTIAL_NAME=${{ secrets.CREDENTIAL_NAME }}" >> $GITHUB_ENV
echo "CREDENTIAL_PW=${{ secrets.CREDENTIAL_PW }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: JDK 21 Setup
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
uses: gradle/[email protected]
with:
arguments: -Dspring.profiles.active=dev --info test
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
with:
files: build/test-results/**/*.xml