Skip to content

Commit

Permalink
Merge pull request #24 from idleberg/exclude-node-modules
Browse files Browse the repository at this point in the history
remove node_modules
  • Loading branch information
joncloud authored Sep 5, 2022
2 parents fa476b0 + 754ecaa commit df78158
Show file tree
Hide file tree
Showing 1,233 changed files with 2,610 additions and 218,817 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ jobs:
run: sudo chown -R $(whoami) /usr/share/nsis/Plugins/
if: ${{ matrix.os == 'ubuntu-20.04' }}

- name: 'Install npm dependencies'
run: npm ci

- name: 'Test'
run: |
npm test -- --reporter json --reporter-options output=./report-${{ matrix.os }}.json
cat ./report-${{ matrix.os }}.json | jq
npm test -- --reporter json --reporter-options output=${{ runner.temp }}/report-${{ matrix.os }}.json
cat ${{ runner.temp }}/report-${{ matrix.os }}.json | jq
- name: 'Publish Tests'
uses: 'dorny/test-reporter@v1'
Expand All @@ -49,5 +52,5 @@ jobs:
continue-on-error: true
with:
name: 'Tests ${{ matrix.os }}'
path: 'report-${{ matrix.os }}.json'
path: ${{ runner.temp }}/report-${{ matrix.os }}.json
reporter: mocha-json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ nsis/nsis/
.DS_Store
.ionide
report*.json
node_modules/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Newline-delimited list of paths to load plugins from. Default `""`.
arguments: "/V3"
```
## Development
This action needs to be built from the source code located in the `/src` folder. Whenever you make changes, you should run the `npm run build` script. Otherwise, your changes won't be tested by CI.

## Sample Projects

* [joncloud/makensis-action-test](https://github.com/joncloud/makensis-action-test)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:

runs:
using: 'node16'
main: 'index.js'
main: 'dist/index.js'

branding:
icon: 'triangle'
Expand Down
Loading

0 comments on commit df78158

Please sign in to comment.