From 8b6da1d715469f5c7edf2f68e83752141528c858 Mon Sep 17 00:00:00 2001 From: David Lantos Date: Wed, 28 Apr 2021 11:50:27 +0100 Subject: [PATCH] Add CI to unit test and validate compatibility Using `fetch-depth: 0` on checkout because the code relies on the history of the repository --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e81b873 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - run: ./gradlew check --console=plain + + compatibility: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - run: ./gradlew assemble --console=plain + - run: java -jar app/build/libs/app.jar