Skip to content

Commit d0bc15e

Browse files
Merge branch 'main' into cartservice-add-host-detector
2 parents 6846d1d + 940dfca commit d0bc15e

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

.github/workflows/run-integration-tests.yml

+5-36
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,18 @@
33
name: Integration Tests
44

55
on:
6-
pull_request_target:
7-
branches:
8-
- main
9-
types: [closed]
6+
pull_request_review:
7+
types:
8+
- submitted
109

1110
jobs:
12-
build_runner:
13-
runs-on: ubuntu-latest
14-
name: "Build Runner"
15-
if: github.event.pull_request.merged == true
16-
steps:
17-
- name: metal-runner-action
18-
uses: equinix-labs/[email protected]
19-
with:
20-
github_token: ${{ secrets.GH_CI_SECRET }}
21-
metal_auth_token: ${{ secrets.METAL_AUTH_TOKEN }}
22-
metal_project_id: ${{ secrets.METAL_PROJECT_ID }}
23-
metro: "da"
24-
plan: "c3.small.x86"
25-
os: "ubuntu_20_04"
2611
run_tests:
27-
needs: build_runner
28-
runs-on: self-hosted
12+
runs-on: ubuntu-latest
2913
name: "Run CI"
14+
if: github.event.review.state == 'APPROVED'
3015
steps:
3116
- name: check out code
3217
uses: actions/checkout@v4
33-
- name: install docker
34-
run: |
35-
curl -fsSL https://get.docker.com -o get-docker.sh
36-
sudo sh get-docker.sh
3718
- name: run tracetesting
3819
run: |
3920
make build && make run-tracetesting
40-
destroy:
41-
needs: [build_runner, run_tests]
42-
runs-on: ubuntu-latest
43-
name: "Cleanup"
44-
if: always()
45-
steps:
46-
- name: metal-sweeper-action
47-
uses: equinix-labs/[email protected]
48-
with:
49-
authToken: ${{ secrets.METAL_AUTH_TOKEN }}
50-
projectID: ${{ secrets.METAL_PROJECT_ID }}
51-
keepProject: true

0 commit comments

Comments
 (0)