Skip to content

Commit

Permalink
ci(test): only run on push, not pull requsets, to avoid problems with…
Browse files Browse the repository at this point in the history
… forks
  • Loading branch information
gr2m committed Oct 26, 2020
1 parent b2076da commit df1c956
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ on:
push:
branches:
- master
- "greenkeeper/**"
pull_request:
types: [opened, synchronize]
name: Test
jobs:
# use no configuration. Will update existing pull request:
Expand All @@ -13,7 +10,7 @@ jobs:
name: "[TEST] Update existing pull request"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- run: "date > test.txt"
- run: "npm ci"
- run: "npm run build"
Expand All @@ -28,7 +25,7 @@ jobs:
name: "[TEST] Create new pull request"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- run: "date > test.txt"
- run: "npm ci"
- run: "npm run build"
Expand All @@ -51,7 +48,7 @@ jobs:
name: "[TEST] Create multiple commits"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- run: "date > file1.txt"
- run: "date > file2.txt"
- run: "npm ci"
Expand Down

0 comments on commit df1c956

Please sign in to comment.