aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
authorThibault Gagnaux <thibault.gagnaux@bit.admin.ch>2021-07-07 17:21:33 +0200
committerThibault Gagnaux <thibault.gagnaux@bit.admin.ch>2021-07-07 17:21:33 +0200
commitcd5d39b867ad5435039d1a47244252078600ca0b (patch)
tree70fd7f74fc8d59fedeeff7923c4df5f217ec6cb5 /.github/workflows/main.yml
parent587d0943327c7bf26a6378c1a710b3b971102ea2 (diff)
downloadfrege-gradle-plugin-cd5d39b867ad5435039d1a47244252078600ca0b.tar.gz
frege-gradle-plugin-cd5d39b867ad5435039d1a47244252078600ca0b.tar.bz2
frege-gradle-plugin-cd5d39b867ad5435039d1a47244252078600ca0b.zip
Refactors tests
- Uses the builder pattern to simplify the creation of `build.gradle` test files. - Adds `gradlew clean test` github workflow
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml28
1 files changed, 28 insertions, 0 deletions
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