Skip to content

Commit

Permalink
Update all services
Browse files Browse the repository at this point in the history
  • Loading branch information
gchristov committed Nov 14, 2024
1 parent 8e6f7ea commit 3c42575
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/actions/unit-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup Gradle
- name: Set up Gradle
uses: ./.github/actions/setup-gradle
with:
java-distribution: ${{ inputs.java-distribution }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nightly-check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: nightly-check

on:
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'

env:
JAVA_VERSION: "15"
Expand All @@ -26,7 +26,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Gradle
- name: Set up Gradle
uses: ./.github/actions/setup-gradle
with:
java-distribution: ${{ env.JAVA_DISTRIBUTION }}
Expand All @@ -46,7 +46,7 @@ jobs:
**/infra
- name: Slack report
uses: slackapi/[email protected]
if: always()
if: always() # Ensure report is sent, even after errors
with:
payload: |
{
Expand All @@ -71,7 +71,7 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
- name: Slack report
uses: slackapi/[email protected]
if: always()
if: always() # Ensure report is sent, even after errors
with:
payload: |
{
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/staging-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: staging-check

on:
pull_request:
branches: [ de ]
branches: [ master ]

env:
JAVA_VERSION: "15"
Expand Down Expand Up @@ -55,30 +55,24 @@ jobs:
outputs:
changed_services: ${{ steps.changed-services.outputs.changed_services }}

check-service-build:
build-service:
if: needs.detect-changed-services.outputs.changed_services != ''
runs-on: ubuntu-24.04
strategy:
matrix:
service: ${{ fromJSON(needs.detect-changed-services.outputs.changed_services) }}
concurrency:
group: ${{ github.ref }}-${{ matrix.service }}-check-service-build
group: ${{ github.ref }}-${{ matrix.service }}-build-service
cancel-in-progress: true
needs: detect-changed-services
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
- name: Set up Gradle
uses: ./.github/actions/setup-gradle
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-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: |
set -Eeuo pipefail
bash tools/scripts/secrets.sh
- name: Build service
run: |
set -Eeuo pipefail
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion gradle-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion landing-page-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion proxy-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion self-destruct/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion slack-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion slack/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down
2 changes: 1 addition & 1 deletion statistics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allprojects {
}

val taskNames = listOf("clean", "assemble", "jsTest", "kotlinUpgradeYarnLock")
taskNames.forEach { taskName ->
taskNames.forEach { taskName ->
tasks.register("${taskName}All") {
tasks.findByName(taskName)?.let { dependsOn(it) }
dependsOn(gradle.includedBuilds.map { it.task(":${taskName}All") })
Expand Down

0 comments on commit 3c42575

Please sign in to comment.