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
163 changes: 0 additions & 163 deletions .actiongenrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# positive tests to verify assertions work as expected
- name: Setup Test Data
id: test-data
run: echo "::set-output name=value::testing"
run: echo "value=testing" >> $GITHUB_OUTPUT
- name: Assert expected
uses: ./
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ typings/

# TernJS port file
.tern-port

# Generated test files
GITHUB_OUTPUT
46 changes: 19 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: testing
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -47,8 +47,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: testing
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -59,8 +59,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: test
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -71,8 +71,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: abc
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -83,8 +83,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: ing
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -95,8 +95,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: abc
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -107,20 +107,20 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: est
actual: ${{ steps.test-data.outputs.value }}
comparison: contains
comparison: endsWith
```

### Example usage w/ notContains assertion

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: abc
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -131,8 +131,8 @@ Result of the comparison. Can be either passed or failed

```yaml
- id: test-data
run: echo "::set-output name=value::testing"
- uses: nick-fields/assert-action@v2
run: echo "value=testing" >> $GITHUB_OUTPUT
- uses: nick-fields/assert-action@v4
with:
expected: abc
actual: ${{ steps.test-data.outputs.value }}
Expand All @@ -144,11 +144,3 @@ Result of the comparison. Can be either passed or failed
## **Limitations**

- If running on self-hosted runner, NodeJS must be installed.

---

## **Ownership**

As of 2022/02/15 ownership of this project has been transferred to my personal account `nick-fields` from my work account `nick-invision` due to me leaving InVision. I am the author and have been the primary maintainer since day one and will continue to maintain this as needed.

No immediate action is required if you rely on this as GitHub handles ownership transfers pretty well. Any current workflow reference to `nick-invision/assert-action@<whatever>` will still work, but will just pull from `nick-fields/assert-action@<whatever>` instead. Who knows how long that will work, so at some point it would be beneficial to update your workflows to reflect the new owner accordingly.
Loading
Loading