Skip to content

Commit

Permalink
Config GitHub actions to avoid double triggering #271
Browse files Browse the repository at this point in the history
References: #271
Lint and tests will now run when:
- A PR is created, updated, reopened...
- A push event happens on the master branch
  • Loading branch information
jlprat committed Aug 3, 2021
1 parent 9b22c74 commit 26478c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Lint

on: [push, pull_request]
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master

jobs:
lint:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Test Suite

on: [push, pull_request]
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master

jobs:
unit-test:
Expand Down

0 comments on commit 26478c0

Please sign in to comment.