Skip to content

Commit

Permalink
Update to node 20 and modern deps
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Mar 6, 2024
1 parent 0d5fb5d commit 4fe85af
Show file tree
Hide file tree
Showing 6 changed files with 683 additions and 658 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/checkout@v4
# https://pnpm.io/continuous-integration
- uses: pnpm/action-setup@v2
with:
version: 8
- run: |
curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
pnpm install
pnpm test
test-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.1
- uses: actions/checkout@v4
- uses: ./
with:
toolchains: '[{"jdkVersion": "$((steps.setupJava.outputs.version))", "jdkHome": "$((steps.setupJava.outputs.path))"}]'
Expand All @@ -31,7 +34,7 @@ jobs:
test-expanded:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.1
- uses: actions/checkout@v4
- uses: ./
with:
toolchains: '[{"jdkVersion": "1.8", "provides": {"vendor": "temurin"}, "jdkHome": "/java/8", "configuration": {"extra": "read all about it"}}]'
Expand All @@ -42,7 +45,7 @@ jobs:
test-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.1
- uses: actions/checkout@v4
- uses: ./
with:
outputFile: custom.xml
Expand All @@ -52,7 +55,7 @@ jobs:
test-env-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.1
- uses: actions/checkout@v4
- uses: ./
with:
outputFile: $GITHUB_WORKSPACE/custom.xml
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.22.6
20
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"typescript"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ inputs:
description: 'Path to generated file, default is ~/.m2/toolchains.xml'
required: false
runs:
using: 'node12'
using: 'node20'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maven-toolchains-xml-action",
"version": "1.0.0",
"version": "2.0.0",
"description": "Update maven ~/.m2/toolchains.xml",
"main": "lib/index.js",
"directories": {
Expand Down
Loading

0 comments on commit 4fe85af

Please sign in to comment.