From 4fc2c89d9828e55c584cb7c7c117535736f42b3c Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Thu, 24 Oct 2024 10:47:38 +0100 Subject: [PATCH] Adapt GitHub workflows to support mono repo structure Signed-off-by: Jade Carino --- .github/workflows/build.yaml | 52 +++++---------------------------- .github/workflows/pr-build.yaml | 52 +++++---------------------------- 2 files changed, 16 insertions(+), 88 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3a0c856..4e62f4c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,29 +29,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Framework + - name: Checkout Galasa uses: actions/checkout@v4 with: - repository: ${{ env.NAMESPACE }}/framework - path: framework - - - name: Checkout Extensions - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/extensions - path: extensions - - - name: Checkout Managers - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/managers - path: managers - - - name: Checkout OBR - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/obr - path: obr + repository: ${{ env.NAMESPACE }}/galasa + path: galasa - name: Checkout Isolated uses: actions/checkout@v4 @@ -66,7 +48,7 @@ jobs: - name: Generate Isolated pom.xml run: | - docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/framework/release.yaml --releaseMetadata /var/root/extensions/release.yaml --releaseMetadata /var/root/managers/release.yaml --releaseMetadata /var/root/obr/release.yaml --template /var/root/isolated/full/pom.template --output /var/root/isolated/full/pom.xml --isolated + docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/full/pom.template --output /var/root/isolated/full/pom.xml --isolated - name: Make directory to place build logs in working-directory: ./isolated/full @@ -331,29 +313,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Framework - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/framework - path: framework - - - name: Checkout Extensions - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/extensions - path: extensions - - - name: Checkout Managers - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/managers - path: managers - - - name: Checkout OBR + - name: Checkout Galasa uses: actions/checkout@v4 with: - repository: ${{ env.NAMESPACE }}/obr - path: obr + repository: ${{ env.NAMESPACE }}/galasa + path: galasa - name: Checkout Isolated uses: actions/checkout@v4 @@ -368,7 +332,7 @@ jobs: - name: Generate MVP pom.xml run: | - docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/framework/release.yaml --releaseMetadata /var/root/extensions/release.yaml --releaseMetadata /var/root/managers/release.yaml --releaseMetadata /var/root/obr/release.yaml --template /var/root/isolated/mvp/pom.template --output /var/root/isolated/mvp/pom.xml --mvp + docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/mvp/pom.template --output /var/root/isolated/mvp/pom.xml --mvp - name: Make directory to place build logs in working-directory: ./isolated/mvp diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 006670a..9d2412b 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -20,29 +20,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Framework + - name: Checkout Galasa uses: actions/checkout@v4 with: - repository: ${{ env.NAMESPACE }}/framework - path: framework - - - name: Checkout Extensions - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/extensions - path: extensions - - - name: Checkout Managers - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/managers - path: managers - - - name: Checkout OBR - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/obr - path: obr + repository: ${{ env.NAMESPACE }}/galasa + path: galasa - name: Checkout Isolated uses: actions/checkout@v4 @@ -57,7 +39,7 @@ jobs: - name: Generate Isolated pom.xml run: | - docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/framework/release.yaml --releaseMetadata /var/root/extensions/release.yaml --releaseMetadata /var/root/managers/release.yaml --releaseMetadata /var/root/obr/release.yaml --template /var/root/isolated/full/pom.template --output /var/root/isolated/full/pom.xml --isolated + docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/full/pom.template --output /var/root/isolated/full/pom.xml --isolated - name: Make directory to place build logs in working-directory: ./isolated/full @@ -288,29 +270,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Framework - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/framework - path: framework - - - name: Checkout Extensions - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/extensions - path: extensions - - - name: Checkout Managers - uses: actions/checkout@v4 - with: - repository: ${{ env.NAMESPACE }}/managers - path: managers - - - name: Checkout OBR + - name: Checkout Galasa uses: actions/checkout@v4 with: - repository: ${{ env.NAMESPACE }}/obr - path: obr + repository: ${{ env.NAMESPACE }}/galasa + path: galasa - name: Checkout Isolated uses: actions/checkout@v4 @@ -325,7 +289,7 @@ jobs: - name: Generate MVP pom.xml run: | - docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/framework/release.yaml --releaseMetadata /var/root/extensions/release.yaml --releaseMetadata /var/root/managers/release.yaml --releaseMetadata /var/root/obr/release.yaml --template /var/root/isolated/mvp/pom.template --output /var/root/isolated/mvp/pom.xml --mvp + docker run --rm -v ${{ github.workspace }}:/var/root/ ghcr.io/galasa-dev/galasabld-amd64:main template --releaseMetadata var/root/galasa/modules/framework/release.yaml --releaseMetadata /var/root/galasa/modules/extensions/release.yaml --releaseMetadata /var/root/galasa/modules/managers/release.yaml --releaseMetadata /var/root/galasa/modules/obr/release.yaml --template /var/root/isolated/mvp/pom.template --output /var/root/isolated/mvp/pom.xml --mvp - name: Make directory to place build logs in working-directory: ./isolated/mvp