Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/setup-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: echo "Do setup"

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: writer
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: echo "Do setup"

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: writer
Expand All @@ -39,7 +39,7 @@ jobs:
continue-on-error: true
needs: [setup]
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

- id: current
run: |-
Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: '0'
actual: "${{ needs.test.outputs.result }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-non-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
needs: [setup]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: current
Expand All @@ -44,18 +44,18 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: '{"result":"one"}'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'success'
actual: "${{ needs.test.outputs.outcome }}"


- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'one'
actual: ${{ fromJson(needs.test.outputs.result).result }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: echo "Do setup"

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: writer
Expand All @@ -37,12 +37,12 @@ jobs:
result: ${{ matrix.target }}
test: existing_value

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: ${{ matrix.target }}
actual: ${{ fromJson(steps.writer.outputs.result).result }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: existing_value
actual: ${{ fromJson(steps.writer.outputs.result).test }}
Expand All @@ -52,7 +52,7 @@ jobs:
continue-on-error: true
needs: [setup]
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

- id: current
run: |-
Expand All @@ -66,12 +66,12 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: '2'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'success'
actual: "${{ needs.test.outputs.outcome }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
continue-on-error: true
needs: [setup]
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

- id: current
run: |-
Expand All @@ -44,12 +44,12 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: '2'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'success'
actual: "${{ needs.test.outputs.outcome }}"
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/test-special-chars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ on:
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: "string" ref:
type: "string"
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: "string" paths:
type: "string"
paths:
description: 'A multiline yaml string of key/value pairs for each Name and Path to include in the comment'
required: false
default: |
Expand All @@ -31,7 +33,7 @@ jobs:
run: echo "Do setup"

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: writer
Expand All @@ -44,44 +46,44 @@ jobs:
test2: "comment: URL for deploy: ' https://frontend-docs-259.website.dev"
test3: ${{ toJson(inputs.paths) }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: ${{ matrix.target }}
actual: ${{ fromJson(steps.writer.outputs.result).result2 }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: ${{ matrix.target }}
actual: ${{ steps.writer.outputs.result2 }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: "comment: URL for deploy: https://frontend-docs-259.website.dev"
actual: ${{ fromJson(steps.writer.outputs.result).test }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: "comment: URL for deploy: https://frontend-docs-259.website.dev"
actual: ${{ steps.writer.outputs.test }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: "comment: URL for deploy: ' https://frontend-docs-259.website.dev"
actual: ${{ fromJson(steps.writer.outputs.result).test2 }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: "comment: URL for deploy: ' https://frontend-docs-259.website.dev"
actual: ${{ steps.writer.outputs.test2 }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: |
Application: application
Dashboard: /dashboard
actual: ${{ fromJson(steps.writer.outputs.result).test3 }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: |
Application: application
Expand All @@ -93,7 +95,7 @@ jobs:
continue-on-error: true
needs: [setup]
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

- id: current
run: |-
Expand All @@ -108,12 +110,12 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: '2'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'success'
actual: "${{ needs.test.outputs.outcome }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
needs: [setup]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: current
Expand All @@ -42,12 +42,12 @@ jobs:
result: ${{ matrix.target }}
test: comment: URL for deploy: https://frontend-docs-259.website.dev

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: ${{ matrix.target }}
actual: ${{ fromJson(steps.writer.outputs.result).result }}

- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: "comment: URL for deploy: https://frontend-docs-259.website.dev"
actual: ${{ fromJson(steps.writer.outputs.result).test }}
Expand All @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v2
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
expected: 'failure'
actual: "${{ needs.test.outputs.result }}"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.build-harness
build-harness
build-harness
node_modules/
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ outputs:
result:
description: "Outputs result (Deprecated!!!)"
runs:
using: "node20"
main: "index.js"
using: "node24"
main: "dist/index.js"
Loading
Loading