mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 23:10:55 +00:00
add git workflow multi-platform-test
This commit is contained in:
1 parent
a82dca24da
commit
65ac083872
1 file changed
+41
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user