From 65ac0838724517a3560db74373992f15608a5d3d Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Wed, 1 Dec 2021 09:52:59 +1300 Subject: [PATCH] add git workflow multi-platform-test --- .github/workflows/multi-platform-test.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/multi-platform-test.yml 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 + +