Skip to content

fix tests

fix tests #36

Workflow file for this run

name: "Test"
on:
push:
branches:
- '**'
tags-ignore:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
branch: [main] # Adjust branches/tags as needed
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "19"
- name: SetUp ois-core
run: |
git clone --branch ${{ matrix.branch }} https://github.com/attiasas/ois-core.git
cd ois-core
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
./gradlew.bat publishToMavenLocal
else
chmod +x gradlew
./gradlew publishToMavenLocal
fi
cd .. # Return to the main project working directory
shell: bash
# Run tests
- name: Tests on macOS, Linux
run: |
chmod +x gradlew
./gradlew clean check
if: runner.os != 'Windows'
- name: Tests on Windows
run: ./gradlew.bat clean check
if: runner.os == 'Windows'