Skip to content

Commit

Permalink
ci: do not run github actions for draft prs
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Dec 28, 2020
1 parent faccfa6 commit c76d373
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

jobs:
lint:
name: Lint
name: Lint Code
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -28,6 +29,7 @@ jobs:

macos:
name: macOS Build
if: github.event.pull_request.draft == false
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
Expand All @@ -52,6 +54,7 @@ jobs:

ubuntu:
name: Ubuntu Build
if: github.event.pull_request.draft == false
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
Expand All @@ -76,6 +79,7 @@ jobs:

windows:
name: Windows Build
if: github.event.pull_request.draft == false
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
Expand All @@ -99,6 +103,7 @@ jobs:

coverage:
name: Aggregate Coverage Calculations
if: github.event.pull_request.draft == false
needs: [macos, ubuntu, windows]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c76d373

Please sign in to comment.