Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iss1828 - Adapt GitHub workflows to support mono repo structure #73

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 8 additions & 44 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
52 changes: 8 additions & 44 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down