From 16a5aa73bdf044e8bdb104c5c2cd9321db2c8366 Mon Sep 17 00:00:00 2001 From: JHipster Bot Date: Wed, 17 Feb 2021 00:27:24 +0000 Subject: [PATCH] Configure Github Continuous Integration --- .github/workflows/github-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/github-ci.yml diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml new file mode 100644 index 0000000..a8e7498 --- /dev/null +++ b/.github/workflows/github-ci.yml @@ -0,0 +1,23 @@ +name: Application CI +on: [push, pull_request] +jobs: + pipeline: + name: jhipsterSampleApplication pipeline + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')" + timeout-minutes: 40 + env: + SPRING_OUTPUT_ANSI_ENABLED: DETECT + SPRING_JPA_SHOW_SQL: false + NG_CLI_ANALYTICS: false + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '11.x' + - name: Run backend test + run: | + chmod +x mvnw + ./mvnw -ntp clean verify + - name: Package application + run: ./mvnw -ntp package -Pprod -DskipTests