Skip to content

Commit

Permalink
ci(workflow): update logic for integration test latest run on macos r…
Browse files Browse the repository at this point in the history
…unner
  • Loading branch information
Sarthak-instill committed Oct 16, 2023
1 parent c4175a2 commit d77279f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm-integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
make integration-test API_GATEWAY_URL=localhost:${API_GATEWAY_PORT}
helm-integration-test-latest-mac:
if: inputs.target == 'latest' && github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
if: inputs.target == 'latest' && github.ref == 'refs/heads/main'
runs-on: [self-hosted,macOS,vdp]
steps:
- name: Set up environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-integration-test-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
component: [pipeline-backend, connector-backend, controller-vdp]
uses: instill-ai/vdp/.github/workflows/helm-integration-test-backend.yml@main
uses: instill-ai/vdp/.github/workflows/helm-integration-test-backend.yml@sarthakgupta/ins-2157-need-to-add-a-logic-to-trigger-that-job-only-when-its-a-push
with:
component: ${{ matrix.component }}
target: latest
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
make integration-test API_GATEWAY_URL=localhost:${API_GATEWAY_PORT}
integration-test-latest-mac:
if: inputs.target == 'latest' && github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
if: inputs.target == 'latest' && github.ref == 'refs/heads/main'
runs-on: [self-hosted,macOS,vdp]
steps:
- name: Set up environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
component: [pipeline-backend, connector-backend, controller-vdp]
uses: instill-ai/vdp/.github/workflows/integration-test-backend.yml@main
uses: instill-ai/vdp/.github/workflows/integration-test-backend.yml@sarthakgupta/ins-2157-need-to-add-a-logic-to-trigger-that-job-only-when-its-a-push
with:
component: ${{ matrix.component }}
target: latest

0 comments on commit d77279f

Please sign in to comment.