mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
run frontend workflow only on push
run all other workflows on push and on PRs from external repos This should prevent running workflows twice in case of a PR from a branch of the main repo
This commit is contained in:
parent
f6be407df2
commit
8d73c29f1a
6 changed files with 36 additions and 6 deletions
10
.github/workflows/backend-tests.yml
vendored
10
.github/workflows/backend-tests.yml
vendored
|
@ -5,6 +5,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
withoutplugins:
|
withoutplugins:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: without plugins
|
name: without plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -26,6 +31,11 @@ jobs:
|
||||||
run: tests/frontend/travis/runnerBackend.sh
|
run: tests/frontend/travis/runnerBackend.sh
|
||||||
|
|
||||||
withplugins:
|
withplugins:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: with Plugins
|
name: with Plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
5
.github/workflows/dockerfile.yml
vendored
5
.github/workflows/dockerfile.yml
vendored
|
@ -5,6 +5,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dockerfile:
|
dockerfile:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: build image and run connectivity test
|
name: build image and run connectivity test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
7
.github/workflows/frontend-tests.yml
vendored
7
.github/workflows/frontend-tests.yml
vendored
|
@ -1,12 +1,9 @@
|
||||||
name: "Frontend tests"
|
name: "Frontend tests"
|
||||||
|
|
||||||
# any branch is useful for testing before a PR is submitted
|
on: [push]
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
withoutplugins:
|
withoutplugins:
|
||||||
# don't run on PRs from forks
|
|
||||||
if: github.event.pull_request.head.repo.full_name == 'ether/etherpad-lite' || github.event_name == 'push'
|
|
||||||
name: without plugins
|
name: without plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -43,8 +40,6 @@ jobs:
|
||||||
tests/frontend/travis/runner.sh
|
tests/frontend/travis/runner.sh
|
||||||
|
|
||||||
withplugins:
|
withplugins:
|
||||||
# don't run on PRs from forks
|
|
||||||
if: github.event.pull_request.head.repo.full_name == 'ether/etherpad-lite' || github.event_name == 'push'
|
|
||||||
name: with plugins
|
name: with plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
5
.github/workflows/lint-package-lock.yml
vendored
5
.github/workflows/lint-package-lock.yml
vendored
|
@ -5,6 +5,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-package-lock:
|
lint-package-lock:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: package-lock.json
|
name: package-lock.json
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
10
.github/workflows/load-test.yml
vendored
10
.github/workflows/load-test.yml
vendored
|
@ -5,6 +5,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
withoutplugins:
|
withoutplugins:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: without plugins
|
name: without plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -22,6 +27,11 @@ jobs:
|
||||||
run: tests/frontend/travis/runnerLoadTest.sh
|
run: tests/frontend/travis/runnerLoadTest.sh
|
||||||
|
|
||||||
withplugins:
|
withplugins:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: with Plugins
|
name: with Plugins
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
5
.github/workflows/rate-limit.yml
vendored
5
.github/workflows/rate-limit.yml
vendored
|
@ -5,6 +5,11 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ratelimit:
|
ratelimit:
|
||||||
|
# run on pushes to any branch
|
||||||
|
# run on PRs from external forks
|
||||||
|
if: |
|
||||||
|
(github.event_name != 'pull_request')
|
||||||
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||||
name: test
|
name: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue