Skip to content

Commit

Permalink
ci: re-modularize jobs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
apaletta3 authored Feb 19, 2024
1 parent 0775001 commit 8aeae98
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 9 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: main-${{ github.ref }}
Expand Down Expand Up @@ -42,11 +40,34 @@ jobs:
echo "Project version: ${project_version}"
echo "value=${project_version}" >> $GITHUB_OUTPUT
build-and-test:
name: Build & Test
build-development-image:
name: Build Development Image
needs:
- prepare-environment
uses: open-space-collective/open-space-toolkit/.github/workflows/build-image.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
secrets: inherit

test:
name: Test
needs:
- prepare-environment
- build-development-image
uses: open-space-collective/open-space-toolkit/.github/workflows/test.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
secrets: inherit

package:
name: Package
needs:
- prepare-environment
uses: open-space-collective/open-space-toolkit/.github/workflows/build-test.yml@main
- build-development-image
- test
uses: open-space-collective/open-space-toolkit/.github/workflows/build-packages.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,34 @@ jobs:
echo "Project version: ${project_version}"
echo "value=${project_version}" >> $GITHUB_OUTPUT
build-and-test:
name: Build & Test
build-development-image:
name: Build Development Image
needs:
- prepare-environment
uses: open-space-collective/open-space-toolkit/.github/workflows/build-test.yml@main
uses: open-space-collective/open-space-toolkit/.github/workflows/build-image.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
secrets: inherit

test:
name: Test
needs:
- prepare-environment
- build-development-image
uses: open-space-collective/open-space-toolkit/.github/workflows/test.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
secrets: inherit

package:
name: Package
needs:
- prepare-environment
- build-development-image
- test
uses: open-space-collective/open-space-toolkit/.github/workflows/build-packages.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
Expand All @@ -48,7 +71,9 @@ jobs:
name: Release
needs:
- prepare-environment
- build-and-test
- build-development-image
- test
- package
uses: open-space-collective/open-space-toolkit/.github/workflows/release.yml@main
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
Expand Down

0 comments on commit 8aeae98

Please sign in to comment.