Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Negation from AurorNZ fork #170

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6706fee
Replace picomatch with micromatch
Obi-Dann Feb 28, 2022
5af776f
Add tests for the filter with negation
Obi-Dann Mar 1, 2022
fa09eba
Merge pull request #1 from AurorNZ/use-micromatch
Obi-Dann Mar 1, 2022
1497c53
v3
Obi-Dann Mar 1, 2022
48131fd
Update Action to Node 16
Oct 15, 2022
f12b3ce
Merge pull request #1 from jbarmash/jbarmash-upgrade-action-to-node16
Oct 15, 2022
5b3a607
merge in some of main
jordanb-afs Apr 10, 2023
6098719
backport changes to use newer core
jordanb-afs Apr 10, 2023
00ec0bc
bump jest back, typescript version was the real issue
jordanb-afs Apr 10, 2023
0bb611c
Merge pull request #3 from ApprenticeFS/merge-main-from-dorny
Obi-Dann May 2, 2023
996e087
Fix security alerts
Obi-Dann May 2, 2023
45ee11c
Merge pull request #5 from AurorNZ/Fix-security-alerts
Obi-Dann May 2, 2023
7c547bd
Release 3.0.1
Obi-Dann May 2, 2023
e55b1ed
Upgrade node to 20
Obi-Dann Jan 30, 2024
2c495ec
Upgrade all the things
Obi-Dann Jan 30, 2024
721c731
Rebuild
Obi-Dann Jan 30, 2024
d8fa5d4
Add changelog
Obi-Dann Jan 30, 2024
3b1f3ab
Merge pull request #9 from AurorNZ/upgrade_node_version_and_dependencies
Obi-Dann Jan 30, 2024
b671dc3
Update action versions in Readme
Obi-Dann Jan 30, 2024
768f03c
Migrate to pnpm and volta
alex-auror Sep 11, 2024
9a1e626
Merge pull request #13 from AurorNZ/migrate_pnpm
alex-auror Sep 11, 2024
6818e25
Migrate jest to vitest
alex-auror Sep 11, 2024
f81aac8
Merge pull request #14 from AurorNZ/vitest
alex-auror Sep 11, 2024
00461c6
Upgrade eslint
alex-auror Sep 11, 2024
19fa779
Fix lint findings
alex-auror Sep 11, 2024
09d0925
Fix prettier config erroring on json
alex-auror Sep 11, 2024
e597062
Merge pull request #15 from AurorNZ/eslint_upgrade
alex-auror Sep 11, 2024
c4f6f67
Use esbuild to generate esm bundle
alex-auror Sep 11, 2024
61068b0
Add import extensions
alex-auror Sep 11, 2024
f46f3f0
Generate new bundle
alex-auror Sep 11, 2024
d28a639
Check dist has been updated for new builds
alex-auror Sep 11, 2024
5c7b514
Bump packages
alex-auror Sep 11, 2024
bfc6e48
Generate new bundle
alex-auror Sep 11, 2024
6f1712f
Bump actions
alex-auror Sep 11, 2024
54ebb4d
Merge pull request #16 from AurorNZ/esbuild_esm
alex-auror Sep 11, 2024
298e00d
Merge pull request #17 from AurorNZ/bump_packages
alex-auror Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

58 changes: 0 additions & 58 deletions .eslintrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* text=auto eol=lf
* text=auto eol=lf

dist/** -diff linguist-generated=true
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ on:
branches:
- master

env:
VOLTA_FEATURE_PNPM: 1

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: |
npm install
npm run all
pnpm install
pnpm run all

self-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: filter
with:
Expand Down
75 changes: 26 additions & 49 deletions .github/workflows/pull-request-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,35 @@ on:
- master
- '**'

env:
VOLTA_FEATURE_PNPM: 1

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Need history for changelog generation
- uses: volta-cli/action@v4
- run: |
npm install
npm run all
pnpm i
pnpm run all
# We need to make sure the checked-in `index.mjs` actually matches what we expect it to be.
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi

test-inline:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: filter
with:
Expand All @@ -36,8 +52,10 @@ jobs:

test-external:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: filter
with:
Expand All @@ -49,7 +67,7 @@ jobs:
test-without-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: filter
with:
Expand All @@ -62,7 +80,7 @@ jobs:
test-wd-without-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: somewhere
- uses: ./somewhere
Expand All @@ -78,7 +96,7 @@ jobs:
test-local-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: echo "NEW FILE" > local
- run: git add local
- uses: ./
Expand All @@ -94,44 +112,3 @@ jobs:
- name: count-test
if: steps.filter.outputs.local_count != 1
run: exit 1

test-change-type:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure GIT user
run: git config user.email "[email protected]" && git config user.name "John Doe"
- name: modify working tree
run: touch add.txt && rm README.md && echo "TEST" > LICENSE
- name: commit changes
run: git add -A && git commit -a -m 'testing this action'
- uses: ./
id: filter
with:
token: ''
list-files: shell
filters: |
added:
- added: "add.txt"
deleted:
- deleted: "README.md"
modified:
- modified: "LICENSE"
any:
- added|deleted|modified: "*"
- name: Print 'added_files'
run: echo ${{steps.filter.outputs.added_files}}
- name: Print 'modified_files'
run: echo ${{steps.filter.outputs.modified_files}}
- name: Print 'deleted_files'
run: echo ${{steps.filter.outputs.deleted_files}}
- name: filter-test
if: |
steps.filter.outputs.added != 'true'
|| steps.filter.outputs.deleted != 'true'
|| steps.filter.outputs.modified != 'true'
|| steps.filter.outputs.any != 'true'
|| steps.filter.outputs.added_files != 'add.txt'
|| steps.filter.outputs.modified_files != 'LICENSE'
|| steps.filter.outputs.deleted_files != 'README.md'
run: exit 1
19 changes: 9 additions & 10 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid"
}
35 changes: 0 additions & 35 deletions .vscode/launch.json

This file was deleted.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## v4.0.0
- [Possibly breaking: Updated dependencies and upgrade to node 20](https://github.com/AurorNZ/paths-filter/pull/9)

## v3.0.1
- [Merged master from upstream](https://github.com/AurorNZ/paths-filter/pull/3) - Thanks @jordanb-afs!
- [Fixed npm security alerts](https://github.com/AurorNZ/paths-filter/pull/5)

## v3.0.0
- [Breaking: use micromatch instead of picomatch](https://github.com/AurorNZ/paths-filter/pull/1)

## v2.11.1
- [Update @actions/core to v1.10.0 - Fixes warning about deprecated set-output](https://github.com/dorny/paths-filter/pull/167)
- [Document need for pull-requests: read permission](https://github.com/dorny/paths-filter/pull/168)
- [Updating to actions/checkout@v3](https://github.com/dorny/paths-filter/pull/164)

## v2.11.0
- [Set list-files input parameter as not required](https://github.com/dorny/paths-filter/pull/157)
- [Update Node.js](https://github.com/dorny/paths-filter/pull/161)
- [Fix incorrect handling of Unicode characters in exec()](https://github.com/dorny/paths-filter/pull/162)
- [Use Octokit pagination](https://github.com/dorny/paths-filter/pull/163)
- [Updates real world links](https://github.com/dorny/paths-filter/pull/160)

## v2.10.2
- [Fix getLocalRef() returns wrong ref](https://github.com/dorny/paths-filter/pull/91)

Expand Down
Loading