diff --git a/.github/workflows/multi-platform-test.yml b/.github/workflows/multi-platform-test.yml new file mode 100644 index 000000000..ef1b8a83c --- /dev/null +++ b/.github/workflows/multi-platform-test.yml @@ -0,0 +1,41 @@ + +name: Build + +on: [workflow_dispatch] + +jobs: + build: + + runs-on: ${{ matrix.os }} + permissions: + contents: read + packages: write + strategy: + fail-fast: false + matrix: + java_version: [11] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + - name: Set up Java + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java_version }} + distribution: 'adopt' + - name: Maven cache + uses: actions/cache@v2 + env: + cache-name: maven-cache + with: + path: + ~/.m2 + key: build-${{ env.cache-name }} + - name: h2 test + run: mvn clean test + - name: postgres test + run: mvn clean test -Dprops.file=testconfig/ebean-postgres.properties + - name: mysql test + run: mvn clean test -Dprops.file=testconfig/ebean-mysql.properties + +