Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 21 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:

strategy:
matrix:
os: [ 'windows-latest', 'ubuntu-latest', 'macos-latest' ]
node-version: [20.x]
os: [ 'windows-latest', 'windows-2025', 'ubuntu-latest', 'macos-latest' ]
node-version: [ 20.x, 22.x, 24.x ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 'Setup pnpm'
uses: pnpm/action-setup@v4

- name: 'Install makensis (choco)'
run: choco install nsis
if: ${{ matrix.os == 'windows-latest' || matrix.os == 'windows-2025' }}

- name: 'Install makensis (apt)'
run: sudo apt update && sudo apt install -y nsis nsis-pluginapi
Expand All @@ -37,23 +39,30 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}

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

- name: 'Install Node.js'
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: 'Test'
run: npm test -- --reporter json --reporter-options output=${{ runner.temp }}/report-${{ matrix.os }}.json
run: |
pnpm test --reporter json --reporter-options output=${{ runner.temp }}/report-${{ matrix.os }}-${{ matrix.node-version }}.json

- name: 'Print Tests'
# run this step even if previous step failed
if: (success() || failure())
run: cat ${{ runner.temp }}/report-${{ matrix.os }}.json | jq
run: cat ${{ runner.temp }}/report-${{ matrix.os }}-${{ matrix.node-version }}.json | jq

- name: 'Publish Tests'
uses: 'dorny/test-reporter@v1'
uses: dorny/test-reporter@v2
# run this step even if previous step failed
if: ${{ !env.ACT }} && (success() || failure())
# If this fails, don't worry the JSON output will be printed as a backup.
continue-on-error: true
with:
name: 'test (${{ matrix.os }}, ${{ matrix.node-version }})'
path: ${{ runner.temp }}/report-${{ matrix.os }}.json
path: ${{ runner.temp }}/report-${{ matrix.os }}-${{ matrix.node-version }}.json
reporter: mocha-json
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Newline-delimited list of paths to load plugins from. Default `""`.

## 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.
This action needs to be built from the source code located in the `/src` folder. Whenever you make changes, you should run the `pnpm build` script. Otherwise, your changes won't be tested by CI.

## Sample Projects

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ inputs:
default: ''

runs:
using: 'node20'
main: 'dist/index.cjs'
using: node24
main: dist/index.js

branding:
icon: 'triangle'
Expand Down
8 changes: 0 additions & 8 deletions dist/index.cjs

This file was deleted.

1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading