summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 0c68f2b593b2a7c774ec4cee9627e028d12a7ac7 (plain)
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
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