File tree 1 file changed +5
-36
lines changed
1 file changed +5
-36
lines changed Original file line number Diff line number Diff line change 3
3
name : Integration Tests
4
4
5
5
on :
6
- pull_request_target :
7
- branches :
8
- - main
9
- types : [closed]
6
+ pull_request_review :
7
+ types :
8
+ - submitted
10
9
11
10
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"
26
11
run_tests :
27
- needs : build_runner
28
- runs-on : self-hosted
12
+ runs-on : ubuntu-latest
29
13
name : " Run CI"
14
+ if : github.event.review.state == 'APPROVED'
30
15
steps :
31
16
- name : check out code
32
17
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
37
18
- name : run tracetesting
38
19
run : |
39
20
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
You can’t perform that action at this time.
0 commit comments