-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (33 loc) · 1.13 KB
/
java-ci.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
name: Build and Test with Maven
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
name: Java CI - test
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [1.8, 11, 17, 21]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Inject dummy example config
working-directory: duo-example
run: printf "duo.clientId=DIAAAAAAAAAAAAAAAAAA\nduo.clientSecret=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nduo.api.host=example.duosecurity.com\nduo.redirect.uri=http://localhost:8080\nduo.failmode=CLOSED\n" > ./src/main/resources/application.properties
- name: Build and test with Maven
run: mvn -B install
- name: Lint with checkstyle
run: mvn checkstyle:check
- name: Verify example starts
working-directory: duo-example
run: mvn spring-boot:start
- name: Verify release profile works
run: mvn -P release package