Skip to content

Commit

Permalink
refactor: integrate infrastructure workflow into ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Jul 4, 2024
1 parent e0705e5 commit dbe2d62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,12 @@ jobs:
git diff --name-only --exit-code . || (echo "Generated files not in parity with the source files." && exit 1)
git reset --hard HEAD
working-directory: contracts-abi

infrastructure:
uses: ./.github/workflows/infrastructure.yml
secrets: inherit
needs:
- commitlint
- go-modules
- foundry
- contracts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: infrastructure

on:
workflow_run:
workflows:
- ci
types:
- completed
workflow_call:
workflow_dispatch:
inputs:
profile:
Expand Down Expand Up @@ -50,7 +46,6 @@ jobs:
name: Setup and Test Nomad Cluster
runs-on: ubuntu-22.04
timeout-minutes: 180
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Setup Environment
Expand Down Expand Up @@ -104,7 +99,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.workflow_run.head_branch }}
ref: ${{ github.event.workflow_run.head_branch || github.event.inputs.branch || github.ref }}

- name: Setup Cache
uses: actions/cache@v4
Expand Down

0 comments on commit dbe2d62

Please sign in to comment.