From 17e1534fa30db708a951f7a8362c0c75324a3e0a Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 19:30:52 +0100 Subject: [PATCH 1/7] Create maven.yml --- .github/workflows/maven.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..7867852 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,24 @@ + +name: CI of KataSG project + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + name: Build project + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn clean install From 73f841bf1c8bcbd0e1739e8d7fe3cb92bcbd0574 Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 19:33:40 +0100 Subject: [PATCH 2/7] Update maven.yml --- .github/workflows/maven.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7867852..e58a5bb 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,6 +2,7 @@ name: CI of KataSG project on: + workflow_dispatch: push: branches: [ "main" ] pull_request: From c01f3109602c692fac52fdfbe1096f052dea6bf5 Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 19:37:06 +0100 Subject: [PATCH 3/7] Update maven.yml --- .github/workflows/maven.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e58a5bb..7867852 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,7 +2,6 @@ name: CI of KataSG project on: - workflow_dispatch: push: branches: [ "main" ] pull_request: From 0aae832028c94e9b4038746abff91ae5e1fb4765 Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 20:32:14 +0100 Subject: [PATCH 4/7] Update maven.yml --- .github/workflows/maven.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7867852..9257154 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,6 +2,14 @@ name: CI of KataSG project on: + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + tags: + description: 'Test scenario tags' push: branches: [ "main" ] pull_request: From 2503bd34be1691000adc2110b5eded76e3db7b9d Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 20:32:52 +0100 Subject: [PATCH 5/7] Update maven.yml --- .github/workflows/maven.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9257154..0ce356f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,10 +10,6 @@ on: default: 'warning' tags: description: 'Test scenario tags' - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] jobs: build: From 25edacd89bf1f6d2440373318f6896da889c7ca8 Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 20:43:26 +0100 Subject: [PATCH 6/7] Update maven.yml --- .github/workflows/maven.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0ce356f..10d52fa 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -4,12 +4,17 @@ name: CI of KataSG project on: workflow_dispatch: inputs: - logLevel: - description: 'Log level' + environment: + description: 'Environment to run tests against' + type: choice required: true - default: 'warning' - tags: - description: 'Test scenario tags' + options: + - staging + - prod + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: From 57331b5622ef924895b8e58e67b18172b0eced90 Mon Sep 17 00:00:00 2001 From: GABSI Date: Wed, 4 Jan 2023 20:44:04 +0100 Subject: [PATCH 7/7] Update maven.yml --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 10d52fa..5275777 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,9 +12,9 @@ on: - staging - prod push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: build: