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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/workflows/ @nickhammond
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
15 changes: 12 additions & 3 deletions .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ on:
description: "Base URL of your local Shipyrd instance."
required: true

permissions:
contents: read

jobs:
test-pre-deploy:
name: Test pre-deploy notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Run action (pre-deploy)
uses: ./
Expand All @@ -26,7 +31,9 @@ jobs:
name: Test post-deploy notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Run action (post-deploy, default status)
uses: ./
Expand All @@ -38,7 +45,9 @@ jobs:
name: Test failed notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Run action (failed)
uses: ./
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ on:
push:
pull_request:

permissions:
contents: read

jobs:
test-pre-deploy:
name: Test pre-deploy notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Start mock server
shell: bash
Expand All @@ -32,7 +37,9 @@ jobs:
name: Test post-deploy notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Start mock server
shell: bash
Expand All @@ -53,7 +60,9 @@ jobs:
name: Test failed notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Start mock server
shell: bash
Expand All @@ -75,7 +84,9 @@ jobs:
name: Test auth failure exits non-zero
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Start mock server (returns 401)
shell: bash
Expand All @@ -95,9 +106,11 @@ jobs:
shipyrd-url: http://localhost:8080

- name: Verify step failed
env:
NOTIFY_OUTCOME: ${{ steps.notify.outcome }}
shell: bash
run: |
if [ "${{ steps.notify.outcome }}" != "failure" ]; then
if [ "$NOTIFY_OUTCOME" != "failure" ]; then
echo "Expected action to fail on 401 but it succeeded"
exit 1
fi
Expand Down
Loading