forked from querqy/querqy-unplugged
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.26 KB
/
pipeline.yaml
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
name: 'querqy-unplugged'
on:
push:
branches:
- main
env:
SERVICE_NAME: querqy-unplugged
JDK_VERSION: 11
permissions:
id-token: write
contents: read # This is required for actions/checkout
statuses: write
checks: write
jobs:
build-from-script:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: ECR Login
uses: aws-actions/amazon-ecr-login@v1
- name: Setup Gradle
uses: gradle/[email protected]
with:
gradle-version: ${{ env.JDK_VERSION }}
- name: run tests
run: ./gradlew --refresh-dependencies check
- name: jar
run: ./gradlew :library:clean :library:assemble :library:testClasses :library:jar
- name: test report
uses: dorny/test-reporter@v1
if: always() # run this step even if previous step failed
with:
name: test report # Name of the check run which will be created
path: build/test-results/**/TEST-*.xml # Path to test results
reporter: java-junit