-
Notifications
You must be signed in to change notification settings - Fork 16
51 lines (43 loc) · 1.21 KB
/
execute-tests.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
51
name: Maven Test Execution
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_call:
jobs:
analyze:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
permissions:
actions: read
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image pool
run: docker build -f bpdm-pool/Dockerfile -t maven-pool .
- name: Build docker image gate
run: docker build -f bpdm-gate/Dockerfile -t maven-gate .
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
#Use Maven package cache
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
#Verify with tests
- name: Verify
run: ./mvnw -B verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}