-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
273 changed files
with
7,970 additions
and
5,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: common-check | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'common/**' | ||
|
||
env: | ||
GCP_SA_KEY_INFRA: ${{ secrets.GCP_SA_KEY_INFRA }} | ||
|
||
jobs: | ||
common-check-build: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-common-check-build | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./common/infra/credentials-gcp-infra.json | ||
- name: Preview infrastructure | ||
uses: pulumi/actions@v5 | ||
with: | ||
command: preview | ||
stack-name: prod | ||
work-dir: common/infra | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Build | ||
path: | | ||
common/infra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: common-deploy | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'common/**' | ||
|
||
env: | ||
GCP_SA_KEY_INFRA: ${{ secrets.GCP_SA_KEY_INFRA }} | ||
|
||
jobs: | ||
common-deploy-build: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-common-deploy-build | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./common/infra/credentials-gcp-infra.json | ||
- name: Deploy infrastructure | ||
uses: pulumi/actions@v5 | ||
with: | ||
command: up | ||
stack-name: prod | ||
work-dir: common/infra | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Build | ||
path: | | ||
common/infra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: landing-page-web-check | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'landing-page-web/**' | ||
|
||
env: | ||
JAVA_VERSION: "15" | ||
JAVA_DISTRIBUTION: "zulu" | ||
GCP_SA_KEY_INFRA: ${{ secrets.GCP_SA_KEY_INFRA }} | ||
|
||
jobs: | ||
landing-page-web-check-build: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-landing-page-web-check-build | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./landing-page-web/infra/credentials-gcp-infra.json | ||
- name: Build project | ||
run: | | ||
set -o pipefail && | ||
cd landing-page-web && | ||
./gradlew --no-daemon assemble && | ||
cd .. | ||
- name: Build container images | ||
run: | | ||
set -o pipefail && | ||
docker compose -f docker/landing-page-web-compose.yaml build | ||
- name: Preview infrastructure | ||
uses: pulumi/actions@v5 | ||
with: | ||
command: preview | ||
stack-name: prod | ||
work-dir: landing-page-web/infra | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Build | ||
path: | | ||
**/build | ||
landing-page-web/infra | ||
landing-page-web-check-test: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-landing-page-web-check-test | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./landing-page-web/infra/credentials-gcp-infra.json | ||
- name: Test | ||
run: | | ||
set -o pipefail && | ||
cd landing-page-web && | ||
./gradlew --no-daemon --continue jsTest && | ||
cd .. | ||
- name: Generate test report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() # Ensure all test reports are collected, even after errors | ||
with: | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
check_name: 'landing-page-web-check-test-results' | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Tests | ||
path: '**/build/test-results/**/TEST-*.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: landing-page-web-deploy | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'landing-page-web/**' | ||
|
||
env: | ||
JAVA_VERSION: "15" | ||
JAVA_DISTRIBUTION: "zulu" | ||
GCP_SA_KEY_INFRA: ${{ secrets.GCP_SA_KEY_INFRA }} | ||
|
||
jobs: | ||
landing-page-web-deploy-build: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-landing-page-web-deploy-build | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./landing-page-web/infra/credentials-gcp-infra.json | ||
- name: Build project | ||
run: | | ||
set -o pipefail && | ||
cd landing-page-web && | ||
./gradlew --no-daemon assemble && | ||
cd .. | ||
- name: Deploy infrastructure | ||
uses: pulumi/actions@v5 | ||
with: | ||
command: up | ||
stack-name: prod | ||
work-dir: landing-page-web/infra | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Build | ||
path: | | ||
**/build | ||
landing-page-web/infra | ||
landing-page-web-deploy-test: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-landing-page-web-deploy-test | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./landing-page-web/infra/credentials-gcp-infra.json | ||
- name: Test | ||
run: | | ||
set -o pipefail && | ||
cd landing-page-web && | ||
./gradlew --no-daemon --continue jsTest && | ||
cd .. | ||
- name: Generate test report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() # Ensure all test reports are collected, even after errors | ||
with: | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
check_name: 'landing-page-web-deploy-test-results' | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Tests | ||
path: '**/build/test-results/**/TEST-*.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: proxy-web-check | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'proxy-web/**' | ||
|
||
env: | ||
JAVA_VERSION: "15" | ||
JAVA_DISTRIBUTION: "zulu" | ||
GCP_SA_KEY_INFRA: ${{ secrets.GCP_SA_KEY_INFRA }} | ||
|
||
jobs: | ||
proxy-web-check-build: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-proxy-web-check-build | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./proxy-web/infra/credentials-gcp-infra.json | ||
- name: Build project | ||
run: | | ||
set -o pipefail && | ||
cd proxy-web && | ||
./gradlew --no-daemon assemble && | ||
cd .. | ||
- name: Build container images | ||
run: | | ||
set -o pipefail && | ||
docker compose -f docker/proxy-web-compose.yaml build | ||
- name: Preview infrastructure | ||
uses: pulumi/actions@v5 | ||
with: | ||
command: preview | ||
stack-name: prod | ||
work-dir: proxy-web/infra | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Build | ||
path: | | ||
**/build | ||
proxy-web/infra | ||
proxy-web-check-test: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.ref }}-proxy-web-check-test | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 # By default, cache is only saved on the 'master' branch | ||
- name: Set up secrets | ||
run: | | ||
echo "$GCP_SA_KEY_INFRA" >> ./proxy-web/infra/credentials-gcp-infra.json | ||
- name: Test | ||
run: | | ||
set -o pipefail && | ||
cd proxy-web && | ||
./gradlew --no-daemon --continue jsTest && | ||
cd .. | ||
- name: Generate test report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() # Ensure all test reports are collected, even after errors | ||
with: | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
check_name: 'proxy-web-check-test-results' | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() # Ensure all artifacts are collected, even after errors | ||
with: | ||
name: Tests | ||
path: '**/build/test-results/**/TEST-*.xml' |
Oops, something went wrong.