Skip to content

Commit

Permalink
feat: edited e2e test (#320)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Tal-Legit and noamd-legit authored Jul 3, 2024
1 parent 8b13777 commit d37f390
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/e2e_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ on:
release:
types: [ published ]
pull_request:
pull_request_target:
types: [ labeled ]
permissions:
contents: read
jobs:
install_and_run_e2e_tests:
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')) }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -46,7 +49,14 @@ jobs:
extra: --repo Legitify-E2E/bad_branch_protection

steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
- name: Checkout non-fork
if: ${{ github.event.pull_request.head.repo.fork == false }}
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
- name: Checkout fork
if: ${{ github.event.pull_request.head.repo.fork == true }}
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # ratchet:actions/setup-go@v3
with:
go-version: 1.19
Expand Down
2 changes: 2 additions & 0 deletions .legitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ instance_8B699E54671FEE1FAC02B830C651450F
instance_8326D270DF418129D65CC0F25077233E
instance_5BB71F8938BAD8D688018A6F9505C44D
instance_0A8CFE3A09E996BDA5D889138D351B7E
instance_5C5D072C7F47D0E7F38048F9550E3EAA
instance_E553D24593AB8E5DE68FC9469FEF895D

0 comments on commit d37f390

Please sign in to comment.