Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
p2edwards committed Nov 23, 2024
1 parent ce1060f commit d3f5439
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,29 @@ on:
pull_request:

jobs:

changes:
name: Check files changed to decide whether to run npm-test
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with: { filters: .github/filters.yml }
outputs:
npm-test: ${{ steps.filter.outputs.should-run-npm-test }}
new-unknown-files: ${{ steps.filter.outputs.new-files-at-root-level }}

build:
runs-on: ubuntu-20.04
needs: changes
if: |
needs.changes.outputs.npm-test == 'true'
|| needs.changes.outputs.new-unknown-files == 'true'
|| github.event_name == 'push'
if: ${{ 'false' == 'true' }} # hold it
runs-on: ubuntu-20.04

strategy:

Expand Down

0 comments on commit d3f5439

Please sign in to comment.