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

feat: upgrade action to node20 #19

Merged
merged 3 commits into from
Nov 22, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: npm

- name: Install Dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
name: Test Action Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
- name: Install node_modules
uses: bahmutov/npm-install@v1
uses: actions/setup-node@v4
- name: Install node_modules with caching
uses: bahmutov/npm-install@v1.10.4
- run: npm run all
test:
name: Test Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create mock test object
id: mock
# example object being tested
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Dependency directory
node_modules

# IDEs
.vscode

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
Expand Down Expand Up @@ -96,4 +99,4 @@ Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
lib/**/*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
- name: Simple
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
key_number: 1
key_string: string1
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
steps:
- name: Simple - nested
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
top.deep.very_deep: 1
```
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
steps:
- name: Simple - depth
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
__depth: 2
one: '{ "two": 2 }'
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
steps:
- name: Simple - casing
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
__case: kebab
my_key.my_nested_key: 1
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
steps:
- name: Simple - deep casing
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
__case: upper
__deep_casing: true
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
- name: Complex values
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
test: ${{ steps.mock.outputs.json }}

Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
- name: Complex values
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
test.value: ${{ fromJSON(steps.mock.outputs.json).two.one }} # value is just 1
```
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
- name: Complex values
id: test # used to access output in other steps
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
test.*.key: ${{ fromJSON(steps.mock.outputs.json).array.*.test }} # value is just ['key1', 'key2`]
```
Expand Down Expand Up @@ -403,7 +403,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create matrix
id: save
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
include.*.number: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.number) }}
include.*.sha: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.head.sha) }}
Expand Down Expand Up @@ -449,7 +449,7 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Store matrix
id: save
uses: nickofthyme/object-remap@v1
uses: nickofthyme/object-remap@v3
with:
include.*.number: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.number) }}
include.*.head_sha: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.head.sha) }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ outputs:
json:
description: remapped json output as a string
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
Loading
Loading