Skip to content

Commit

Permalink
get project tests running
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanMarx committed May 25, 2024
1 parent c78ed34 commit 193c508
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/project-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: project tests

on:
pull_request:
types:
types:
- opened
- reopened
- synchronize
Expand All @@ -17,27 +17,24 @@ jobs:
outputs:
projects: ${{ steps.filter.outputs.projectchanges }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
- name: Checkout repository
uses: actions/checkout@v2
- name: Filter project changes
id: filter
uses: dorny/paths-filter@v2
with:
filters: .github/project-filters.yaml
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false

# second job takes those outputs and runs
# unit tests on these libs and projects
tests:
runs-on: ubuntu-latest
needs: projectchanges
strategy:
fail-fast: false # is this desired behavior here?
fail-fast: false
matrix:
project: ${{ fromJSON(needs.projectchanges.outputs.projects) }}
exclude:
# don't run non-existent .github/workflow tests,
# and exclude projects, whose tests are run in
# a different CI script
- project: 'workflow'
- project: 'workflow' # Fixed the exclusion key
permissions:
packages: read
container:
Expand Down

0 comments on commit 193c508

Please sign in to comment.