Skip to content

Commit

Permalink
Adding Test (#4)
Browse files Browse the repository at this point in the history
* update test

* update docs
  • Loading branch information
Benbentwo authored Aug 1, 2023
1 parent 08498b3 commit b892ea1
Show file tree
Hide file tree
Showing 4 changed files with 358 additions and 84 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
expected-namespace: foo-bar-zyx
- env: dev
expected-namespace: dev
expected-cluster-role: arn:aws:iam::123456789012:role/my-gha-cluster-role
env: [preview, preview-prs, production, dev]
runs-on: ubuntu-latest
continue-on-error: true
Expand Down Expand Up @@ -58,12 +59,19 @@ jobs:
dev:
cluster: cluster-dev
namespace: dev
cluster-role: arn:aws:iam::123456789012:role/my-gha-cluster-role
- uses: nick-fields/assert-action@v1
with:
actual: "${{ steps.current.outputs.namespace }}"
expected: '${{ matrix.expected-namespace }}'

- uses: nick-fields/assert-action@v1
if: ${{ matrix.expected-cluster-role }}
with:
actual: "${{ steps.current.outputs.role }}"
expected: '${{ matrix.expected-cluster-role }}'

teardown:
runs-on: ubuntu-latest
needs: [test]
Expand Down
Loading

0 comments on commit b892ea1

Please sign in to comment.