Skip to content

Commit fb60afa

Browse files
authored
Added spacelift stack (#11)
## what * Use `plat-ue2-sandbox-test-github-action` stack for tests
1 parent bb42917 commit fb60afa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test-negative.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: ./
2626
id: current
2727
with:
28-
stack: plat-ue2-sandbox-ecs-service-non-existing-app
28+
stack: plat-ue2-sandbox-test-github-action-no-existing
2929
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
3030
organization: ${{ secrets.SPACELIFT_ORGANZATION }}
3131
api_key_id: ${{ secrets.SPACELIFT_API_KEY_ID }}

.github/workflows/test-positive.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: ./
2626
id: current
2727
with:
28-
stack: plat-ue2-sandbox-ecs-service-example-app
28+
stack: plat-ue2-sandbox-test-github-action
2929
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
3030
organization: ${{ secrets.SPACELIFT_ORGANZATION }}
3131
api_key_id: ${{ secrets.SPACELIFT_API_KEY_ID }}
@@ -53,17 +53,17 @@ jobs:
5353
in: ${{ needs.test.outputs.outputs }}
5454

5555
- uses: edwardgeorge/jq-action@main
56-
id: ecs_cluster
56+
id: stack_output
5757
with:
5858
compact: true
5959
raw-output: true
6060
input: ${{ steps.result.outputs.out }}
61-
script: 'map(select(.id == "ecs_cluster_arn")) | .[0].id'
61+
script: 'map(select(.id == "result")) | .[0].value'
6262

6363
- uses: nick-fields/assert-action@v1
6464
with:
65-
expected: 'ecs_cluster_arn'
66-
actual: "${{ steps.ecs_cluster.outputs.output }}"
65+
expected: 'success'
66+
actual: "${{ steps.stack_output.outputs.output }}"
6767

6868
teardown:
6969
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)