Compare commits

...

1 Commits
v3.0.1 ... v

Author SHA1 Message Date
Raja Anbazhagan
361088214a refactor: update actions from nick-invision to nick-fields (#147) 2025-02-25 06:54:55 -05:00
2 changed files with 36 additions and 36 deletions

View File

@@ -48,7 +48,7 @@ jobs:
timeout_minutes: 1 timeout_minutes: 1
max_attempts: 2 max_attempts: 2
command: npm -v command: npm -v
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: true expected: true
actual: ${{ steps.happy_path.outputs.total_attempts == '1' && steps.happy_path.outputs.exit_code == '0' }} actual: ${{ steps.happy_path.outputs.total_attempts == '1' && steps.happy_path.outputs.exit_code == '0' }}
@@ -67,11 +67,11 @@ jobs:
timeout_minutes: 1 timeout_minutes: 1
max_attempts: 2 max_attempts: 2
command: node -e "process.exit(1)" command: node -e "process.exit(1)"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.sad_path_error.outputs.total_attempts }} actual: ${{ steps.sad_path_error.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.sad_path_error.outcome }} actual: ${{ steps.sad_path_error.outcome }}
@@ -85,15 +85,15 @@ jobs:
max_attempts: 3 max_attempts: 3
retry_on: timeout retry_on: timeout
command: node -e "process.exit(2)" command: node -e "process.exit(2)"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 1 expected: 1
actual: ${{ steps.retry_on_timeout_fail.outputs.total_attempts }} actual: ${{ steps.retry_on_timeout_fail.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_timeout_fail.outcome }} actual: ${{ steps.retry_on_timeout_fail.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.retry_on_timeout_fail.outputs.exit_code }} actual: ${{ steps.retry_on_timeout_fail.outputs.exit_code }}
@@ -107,15 +107,15 @@ jobs:
max_attempts: 2 max_attempts: 2
retry_on: error retry_on: error
command: node -e "process.exit(2)" command: node -e "process.exit(2)"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.retry_on_error.outputs.total_attempts }} actual: ${{ steps.retry_on_error.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_error.outcome }} actual: ${{ steps.retry_on_error.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.retry_on_error.outputs.exit_code }} actual: ${{ steps.retry_on_error.outputs.exit_code }}
@@ -129,11 +129,11 @@ jobs:
max_attempts: 2 max_attempts: 2
shell: cmd shell: cmd
command: 'dir' command: 'dir'
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.wrong_shell.outputs.total_attempts }} actual: ${{ steps.wrong_shell.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.wrong_shell.outcome }} actual: ${{ steps.wrong_shell.outcome }}
@@ -180,12 +180,12 @@ jobs:
timeout_minutes: 5 timeout_minutes: 5
command: 'make -C ./test-data/large-output bytes-102400' command: 'make -C ./test-data/large-output bytes-102400'
- name: Assert test had expected result - name: Assert test had expected result
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.large-output.outcome }} actual: ${{ steps.large-output.outcome }}
- name: Assert exit code is expected - name: Assert exit code is expected
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.large-output.outputs.exit_code }} actual: ${{ steps.large-output.outputs.exit_code }}
@@ -211,11 +211,11 @@ jobs:
retry_on_exit_code: 2 retry_on_exit_code: 2
max_attempts: 3 max_attempts: 3
command: node -e "process.exit(2)" command: node -e "process.exit(2)"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_exit_code_expected.outcome }} actual: ${{ steps.retry_on_exit_code_expected.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 3 expected: 3
actual: ${{ steps.retry_on_exit_code_expected.outputs.total_attempts }} actual: ${{ steps.retry_on_exit_code_expected.outputs.total_attempts }}
@@ -229,11 +229,11 @@ jobs:
retry_on_exit_code: 2 retry_on_exit_code: 2
max_attempts: 3 max_attempts: 3
command: node -e "process.exit(1)" command: node -e "process.exit(1)"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_exit_code_unexpected.outcome }} actual: ${{ steps.retry_on_exit_code_unexpected.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 1 expected: 1
actual: ${{ steps.retry_on_exit_code_unexpected.outputs.total_attempts }} actual: ${{ steps.retry_on_exit_code_unexpected.outputs.total_attempts }}
@@ -265,22 +265,22 @@ jobs:
timeout_minutes: 1 timeout_minutes: 1
continue_on_error: true continue_on_error: true
- name: Verify continue_on_error returns correct exit code on success - name: Verify continue_on_error returns correct exit code on success
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: 0 expected: 0
actual: ${{ steps.happy_path_continue_on_error.outputs.exit_code }} actual: ${{ steps.happy_path_continue_on_error.outputs.exit_code }}
- name: Verify continue_on_error exits with correct outcome on success - name: Verify continue_on_error exits with correct outcome on success
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: success expected: success
actual: ${{ steps.happy_path_continue_on_error.outcome }} actual: ${{ steps.happy_path_continue_on_error.outcome }}
- name: Verify continue_on_error returns correct exit code on error - name: Verify continue_on_error returns correct exit code on error
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: 33 expected: 33
actual: ${{ steps.sad_path_continue_on_error.outputs.exit_code }} actual: ${{ steps.sad_path_continue_on_error.outputs.exit_code }}
- name: Verify continue_on_error exits with successful outcome when an error occurs - name: Verify continue_on_error exits with successful outcome when an error occurs
uses: nick-invision/assert-action@v1 uses: nick-fields/assert-action@v1
with: with:
expected: success expected: success
actual: ${{ steps.sad_path_continue_on_error.outcome }} actual: ${{ steps.sad_path_continue_on_error.outcome }}
@@ -307,15 +307,15 @@ jobs:
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 15 retry_wait_seconds: 15
command: npm install this-isnt-a-real-package-name-zzz command: npm install this-isnt-a-real-package-name-zzz
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 3 expected: 3
actual: ${{ steps.sad_path_wait_sec.outputs.total_attempts }} actual: ${{ steps.sad_path_wait_sec.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.sad_path_wait_sec.outcome }} actual: ${{ steps.sad_path_wait_sec.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 'Final attempt failed' expected: 'Final attempt failed'
actual: ${{ steps.sad_path_wait_sec.outputs.exit_error }} actual: ${{ steps.sad_path_wait_sec.outputs.exit_error }}
@@ -385,11 +385,11 @@ jobs:
timeout_seconds: 15 timeout_seconds: 15
max_attempts: 2 max_attempts: 2
command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()" command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.sad_path_timeout.outputs.total_attempts }} actual: ${{ steps.sad_path_timeout.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.sad_path_timeout.outcome }} actual: ${{ steps.sad_path_timeout.outcome }}
@@ -416,11 +416,11 @@ jobs:
max_attempts: 2 max_attempts: 2
retry_on: timeout retry_on: timeout
command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()" command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.retry_on_timeout.outputs.total_attempts }} actual: ${{ steps.retry_on_timeout.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_timeout.outcome }} actual: ${{ steps.retry_on_timeout.outcome }}
@@ -447,15 +447,15 @@ jobs:
max_attempts: 2 max_attempts: 2
retry_on: error retry_on: error
command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()" command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 1 expected: 1
actual: ${{ steps.retry_on_error_fail.outputs.total_attempts }} actual: ${{ steps.retry_on_error_fail.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.retry_on_error_fail.outcome }} actual: ${{ steps.retry_on_error_fail.outcome }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 1 expected: 1
actual: ${{ steps.retry_on_error_fail.outputs.exit_code }} actual: ${{ steps.retry_on_error_fail.outputs.exit_code }}
@@ -481,11 +481,11 @@ jobs:
timeout_minutes: 1 timeout_minutes: 1
max_attempts: 2 max_attempts: 2
command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()" command: node -e "(async()=>await new Promise(r => setTimeout(r, 120000)))()"
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: 2 expected: 2
actual: ${{ steps.sad_path_timeout_minutes.outputs.total_attempts }} actual: ${{ steps.sad_path_timeout_minutes.outputs.total_attempts }}
- uses: nick-invision/assert-action@v1 - uses: nick-fields/assert-action@v1
with: with:
expected: failure expected: failure
actual: ${{ steps.sad_path_timeout_minutes.outcome }} actual: ${{ steps.sad_path_timeout_minutes.outcome }}

View File

@@ -13,15 +13,15 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/nick-invision/retry.git" "url": "git+https://github.com/nick-fields/retry.git"
}, },
"keywords": [], "keywords": [],
"author": "Nick Fields", "author": "Nick Fields",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/nick-invision/retry/issues" "url": "https://github.com/nick-fields/retry/issues"
}, },
"homepage": "https://github.com/nick-invision/retry#readme", "homepage": "https://github.com/nick-fields/retry#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"milliseconds": "^1.0.3", "milliseconds": "^1.0.3",