Skip to content

Commit

Permalink
Migrate project to KotlinJS (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchristov authored Mar 4, 2024
1 parent 441330c commit 1428c73
Show file tree
Hide file tree
Showing 273 changed files with 7,970 additions and 5,142 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/common-check.yml
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
38 changes: 38 additions & 0 deletions .github/workflows/common-deploy.yml
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
95 changes: 95 additions & 0 deletions .github/workflows/landing-page-web-check.yml
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'
91 changes: 91 additions & 0 deletions .github/workflows/landing-page-web-deploy.yml
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'
95 changes: 95 additions & 0 deletions .github/workflows/proxy-web-check.yml
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'
Loading

0 comments on commit 1428c73

Please sign in to comment.