From 11fa481be2101e1cd28f84d3ff7d9d5952bd923d Mon Sep 17 00:00:00 2001 From: "shenan.quek" <77522687+SQUEK011@users.noreply.github.com> Date: Wed, 31 Jul 2024 00:02:20 +0800 Subject: [PATCH] first commit --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..9506777 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Application CI workflow +on: [push, pull_request] +jobs: + pipeline: + name: scaleup 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: + NODE_VERSION: 20.15.0 + SPRING_OUTPUT_ANSI_ENABLED: DETECT + SPRING_JPA_SHOW_SQL: false + JHI_DISABLE_WEBPACK_LOGS: true + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.15.0 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 17 + - name: Install Node.js packages + run: npm install + - name: Run backend test + run: | + chmod +x mvnw + npm run ci:backend:test + - name: Run frontend test + run: npm run ci:frontend:test + - name: Package application + run: npm run java:jar:prod