Skip to content

Commit

Permalink
Remove ignored paths (#1623)
Browse files Browse the repository at this point in the history
* Remove ignored paths

* Remove old needs

* Add bench-init to needs

Co-authored-by: Potato Hatsue <[email protected]>
  • Loading branch information
jneira and berberman authored Mar 27, 2021
1 parent 75e365a commit c5f5d20
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ on:
pull_request:
branches:
- '**'
paths-ignore:
- '**/docs/**'
- '**.md'
- '**/LICENSE'
- '.circleci/**'
- 'install/**'
- 'nix/**'
- 'test/**'
- 'ghcide/test/**'

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: true
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "nix/**", "**/test/**"]'

bench-init:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -86,7 +90,8 @@ jobs:
path: ~/.cabal/cabal.tar.gz

bench-example:
needs: [bench-init]
needs: [pre_job, bench-init]
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ on:
pull_request:
branches:
- '**'
paths-ignore:
- '**/docs/**'
- '**.md'
- '**/LICENSE'
- '.circleci/**'
- 'install/**'

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: true
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**"]'

nix:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@ on:
pull_request:
branches:
- '**'
paths-ignore:
- '**/docs/**'
- '**.md'
- '**/LICENSE'
- '.circleci/**'
- 'install/**'
- 'nix/**'

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: true
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "nix/**"]'


test:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
Expand Down

0 comments on commit c5f5d20

Please sign in to comment.