Skip to content

Commit d37f390

Browse files
feat: edited e2e test (#320)
* edited e2e test * Update .github/workflows/e2e_testing.yaml Co-authored-by: noamd-legit <74864790+noamd-legit@users.noreply.github.com> * legit ignore and parentheses --------- Co-authored-by: noamd-legit <74864790+noamd-legit@users.noreply.github.com>
1 parent 8b13777 commit d37f390

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/e2e_testing.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ on:
66
release:
77
types: [ published ]
88
pull_request:
9+
pull_request_target:
10+
types: [ labeled ]
911
permissions:
1012
contents: read
1113
jobs:
1214
install_and_run_e2e_tests:
15+
if: ${{ github.event.pull_request.head.repo.fork == false || (github.event.pull_request.head.repo.fork == true && contains(github.event.pull_request.labels.*.name,'Approve E2E Test')) }}
1316
runs-on: ubuntu-latest
1417
strategy:
1518
matrix:
@@ -46,7 +49,14 @@ jobs:
4649
extra: --repo Legitify-E2E/bad_branch_protection
4750

4851
steps:
49-
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
52+
- name: Checkout non-fork
53+
if: ${{ github.event.pull_request.head.repo.fork == false }}
54+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
55+
- name: Checkout fork
56+
if: ${{ github.event.pull_request.head.repo.fork == true }}
57+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
58+
with:
59+
ref: ${{ github.event.pull_request.head.sha }}
5060
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # ratchet:actions/setup-go@v3
5161
with:
5262
go-version: 1.19

.legitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ instance_8B699E54671FEE1FAC02B830C651450F
33
instance_8326D270DF418129D65CC0F25077233E
44
instance_5BB71F8938BAD8D688018A6F9505C44D
55
instance_0A8CFE3A09E996BDA5D889138D351B7E
6+
instance_5C5D072C7F47D0E7F38048F9550E3EAA
7+
instance_E553D24593AB8E5DE68FC9469FEF895D

0 commit comments

Comments
 (0)