From cd5d39b867ad5435039d1a47244252078600ca0b Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Wed, 7 Jul 2021 17:21:33 +0200 Subject: Refactors tests - Uses the builder pattern to simplify the creation of `build.gradle` test files. - Adds `gradlew clean test` github workflow --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github/workflows/main.yml') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0c68f2b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Test +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + ci: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-10.15, ubuntu-20.04, windows-2019] + + steps: + - name: Checkout Repository + uses: actions/checkout@v2.3.4 + + - name: Run Tests + run: | + if [ "$RUNNER_OS" = "Windows" ]; then + gradlew.bat clean test + else + ./gradlew clean test + fi \ No newline at end of file -- cgit