Skip to content

Merge branch 'main' of https://github.com/poolborges/unicenta-pos #366

Merge branch 'main' of https://github.com/poolborges/unicenta-pos

Merge branch 'main' of https://github.com/poolborges/unicenta-pos #366

Workflow file for this run

name: Java CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 17, 19]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Make mvnw executable
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
chmod +x ./mvnw
elif [ "$RUNNER_OS" == "macOS" ]; then
chmod +x ./mvnw
else
echo "$RUNNER_OS not need change permission"
fi
shell: bash
- name: Run tests and collect coverage
run: ./mvnw test -Pqa -B --no-transfer-progress
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3