Skip to content

Commit

Permalink
feat: add workflow to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
druskus20 committed Feb 22, 2024
1 parent 199e12e commit 056c888
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/run-all-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run all tests

on:
workflow_dispatch # manually
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: read

jobs:
call-workflow-test-aws-login:
uses: ./.github/workflows/test-aws-login.yaml
call-workflow-test-elk-docker-build-cache-push:
uses: ./.github/workflows/test-elk-docker-build-cache-push.yaml
call-workflow-test-elk-dynamic-input-defaults:
uses: ./.github/workflows/test-elk-dynamic-input-defaults.yaml
call-workflow-test-slack-fail-alert:
uses: ./.github/workflows/test-slack-fail-alert.yaml
call-workflow-test-upload-s3:
uses: ./.github/workflows/test-upload-s3.yaml

4 changes: 3 additions & 1 deletion .github/workflows/test-aws-login.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test login to AWS

on: workflow_dispatch
on:
workflow_dispatch
workflow_call

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-elk-docker-build-cache-push.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test Docker Build Cache Push

on:
workflow_call
workflow_dispatch: # manually
inputs:
debug_enabled:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-elk-dynamic-input-defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test dynamic input defaults

on: workflow_dispatch
on:
workflow_dispatch
workflow_call

permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-slack-fail-alert.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test send a failure message to slack

on: workflow_dispatch # manually
on:
workflow_dispatch # manually
workflow_call

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-upload-s3.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test upload test directory to S3

on:
workflow_call
workflow_dispatch: # manually
inputs:
debug_enabled:
Expand Down

0 comments on commit 056c888

Please sign in to comment.