Skip to content

Commit

Permalink
Merge pull request #240 from onflow/bastian/improve-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Nov 10, 2023
2 parents 87427e0 + 74cd5ea commit 554409a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,31 @@ on:
- 'v**'

jobs:
paths-filter:
runs-on: ubuntu-20.04
outputs:
test: ${{ steps.filter.outputs.test }}
lint: ${{ steps.filter.outputs.lint }}
languageserver: ${{ steps.filter.outputs.languageserver }}
docgen: ${{ steps.filter.outputs.docgen }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
test:
- 'test/**'
lint:
- 'lint/**'
languageserver:
- 'languageserver/**'
docgen:
- 'docgen/**'
test-test:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.test == 'true' }}
name: Test (Test Framework)
runs-on: ubuntu-20.04
steps:
Expand All @@ -38,6 +62,8 @@ jobs:
run: make check-tidy-test

test-lint:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.lint == 'true' }}
name: Test (Lint)
runs-on: ubuntu-20.04
steps:
Expand All @@ -59,6 +85,8 @@ jobs:
run: make check-tidy-lint

test-languageserver:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.languageserver == 'true' }}
name: Test (Language Server)
runs-on: ubuntu-20.04
steps:
Expand All @@ -85,6 +113,8 @@ jobs:
run: make check-tidy-languageserver

test-docgen:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.docgen == 'true' }}
name: Test (Docgen)
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit 554409a

Please sign in to comment.