-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 933 Bytes
/
test.yml
File metadata and controls
36 lines (30 loc) · 933 Bytes
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
name: Java CI with Maven
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
cache: maven
- name: Run tests with Maven
env:
TEST_COGNITO_USER_POOL_ID: ${{ secrets.TEST_COGNITO_USER_POOL_ID }}
TEST_COGNITO_CLIENT_ID: ${{ secrets.TEST_COGNITO_CLIENT_ID }}
TEST_COGNITO_USERNAME: ${{ secrets.TEST_COGNITO_USERNAME }}
TEST_COGNITO_PASSWORD: ${{ secrets.TEST_COGNITO_PASSWORD }}
run: >
mvn -B -Dfile.encoding=UTF-8 test --file pom.xml
- name: Generate test report
run: >
mvn -B -Dfile.encoding=UTF-8
site -DgenerateReports=false
surefire-report:report-only