Skip to content

Commit

Permalink
Implement an integration test for the Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
e1himself committed Dec 22, 2023
1 parent 743191f commit 96dda6a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Integration test"
on: # rebuild any PRs and main branch changes
schedule:
- cron: '0 12 * * 1'

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: "Install goss & co"
uses: @e1himself/goss-installation-action

- name: "Validate installed tools"
run: goss validate

22 changes: 22 additions & 0 deletions goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
command:
goss:
exit-status: 0
exec: "goss --help"
stdout:
- "goss - Quick and Easy server validation"

dgoss:
exit-status: 1
stderr:
- "ERROR: USAGE: dgoss"

kgoss:
exec: "kgoss --help"
exit-status: 2
stderr:
- "Usage:"

dcgoss:
exit-status: 1
stdout:
- "no docker-compose file found in ."

0 comments on commit 96dda6a

Please sign in to comment.