-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (35 loc) · 998 Bytes
/
build.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
name: build
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
concurrency:
group: ${{ github.ref }}-build
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
jdk_version: ['17']
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Clear old Docker resources
run: |
docker rm -f $(docker ps -aq) || true
docker system prune -af || true
docker image prune -af || true
docker volume prune -f || true
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '${{ matrix.jdk_version }}'
distribution: 'temurin'
- name: Remove old Concord artifacts
run: |
rm -rf ~/.m2/repository/com/walmartlabs/concord
rm -rf ~/actions-runner/.m2/repository/com/walmartlabs/concord
- name: Build and test with Maven
run: ./mvnw -B clean install