Skip to content

Commit

Permalink
Use GitHub glob support for paths input (#38)
Browse files Browse the repository at this point in the history
* feat: Add glob pattern support for file inputs

- Replace direct file list splitting with glob pattern expansion
- Use @actions/glob package to handle pattern matching
- Ensure uniqueness of expanded file list by using Set
- Update upload arguments to use expanded file list

* Update dependencies and add tests

- Adds `@actions/glob`
- Adds `vitest`
- Removes `jest`
- Adds a basic unit test

* `npm run package`

* `npm test` in GitHub Actions CI `build` job
  • Loading branch information
larkinscott authored Jan 14, 2025
1 parent 76fe60d commit 3ec79c8
Show file tree
Hide file tree
Showing 6 changed files with 5,405 additions and 5,377 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ on:
push:
paths:
- coverage/**
- '**.js'
- '**.ts'
- '**.test.js'
- '**.test.ts'
branches:
- main
pull_request:
paths:
- coverage/**
- '**.js'
- '**.ts'
- '**.test.js'
- '**.test.ts'

permissions:
contents: read
Expand Down Expand Up @@ -52,7 +60,7 @@ jobs:
exit 1
fi
# - name: Test
# id: npm-ci-test
# working-directory: ./coverage
# run: npm run ci-test
- name: Test
id: npm-test
working-directory: ./coverage
run: npm test
Loading

0 comments on commit 3ec79c8

Please sign in to comment.