Skip to content

Commit

Permalink
Do not execute Github actions twice
Browse files Browse the repository at this point in the history
Signed-off-by: David Gräff <[email protected]>
  • Loading branch information
David Gräff authored and davidgraeff committed Jan 20, 2021
1 parent ce334af commit 5e2bf4b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Integration

on:
pull_request:
push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- '**:**'

jobs:
build:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Code Style

on:
pull_request:
push:

pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- '**:**'
jobs:
build:

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/with_rocket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ on:
push:
paths:
- 'src'
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- '**:**'
paths:
- 'src'

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
os: [ubuntu-latest]
rust: [nightly]

steps:
Expand Down

0 comments on commit 5e2bf4b

Please sign in to comment.