From 420ecbb10e8b12bd09984c2f7dfc2fedaf4d4e09 Mon Sep 17 00:00:00 2001 From: lemoncurry Date: Tue, 14 Apr 2020 19:27:43 +0200 Subject: [PATCH] Add github workflow and testing action --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a5e3c2b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: main + +on: + push: + pull_request: + +jobs: + build_and_test: + name: Build and test project + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build and test project + env: + RECHECK_API_KEY: ${{ secrets.RECHECK_API_KEY }} + run: mvn -B clean verify + + + + + + +