chore(e2e): Make e2e run on forks (#555)

* Use e2e env

* Snapshot env

* Update

* Test

* Update

* Test

* Add comments

* Make linter happy
This commit is contained in:
Anatolios Laskaris 2023-03-29 12:16:59 +03:00 committed by GitHub
parent 8bcad8e3af
commit 593083b966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -3,10 +3,15 @@ name: "Run tests"
on:
pull_request:
paths-ignore:
- "!**.md"
- "**.md"
- ".github/**"
- "!.github/workflows/ci.yml"
push:
branches:
- "master"
paths-ignore:
- "**.md"
- ".github/**"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"

View File

@ -1,12 +1,19 @@
name: "e2e"
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "!**.md"
- "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/snapshot.yml"
push:
branches:
- "master"
paths-ignore:
- "**.md"
- ".github/**"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
@ -14,6 +21,8 @@ concurrency:
jobs:
aquavm:
# trigger when PRs is not from fork or when workflow triggered manually
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/snapshot.yml
with:
ref: ${{ github.ref }}