-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 904 Bytes
/
uat.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
name: Java CI UAT
on:
push:
branches:
- main
- uat-dev
pull_request:
branches: '**'
jobs:
build:
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
if: matrix.os == 'ubuntu-latest'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven (not Windows)
working-directory: uat
run: mvn -ntp -U clean verify
if: matrix.os != 'windows-latest'
- name: Build with Maven (Windows)
working-directory: uat
env:
AWS_REGION: us-west-2
run: mvn -ntp -U clean verify
shell: cmd
if: matrix.os == 'windows-latest'