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
27 changes: 15 additions & 12 deletions .github/workflows/test-negative.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
name: Test example negative
on:
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
# #
# # Added pull_request to register workflow from the PR.
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
# pull_request: {}
workflow_dispatch: {}

# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
# #
# # Added pull_request to register workflow from the PR.
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
# pull_request: {}
workflow_dispatch:
inputs:
ref:
description: The fully-formed ref of the branch or tag that triggered the workflow run
required: false
type: string
sha:
description: The sha of the commit that triggered the workflow run
required: false
type: string
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Setup
run: echo "Do setup"

test:
runs-on: ubuntu-latest
needs: [setup]
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./
id: current
with:
param1: 'false'

outputs:
result: "${{ steps.current.outputs.result1 }}"

assert:
runs-on: ubuntu-latest
needs: [test]
Expand All @@ -38,7 +42,6 @@ jobs:
with:
expected: 'false'
actual: "${{ needs.test.outputs.result }}"

teardown:
runs-on: ubuntu-latest
needs: [assert]
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
name: Test example positive
on:
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
# #
# # Added pull_request to register workflow from the PR.
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
# pull_request: {}
workflow_dispatch: {}

# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
# #
# # Added pull_request to register workflow from the PR.
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
# pull_request: {}
workflow_dispatch:
inputs:
ref:
description: The fully-formed ref of the branch or tag that triggered the workflow run
required: false
type: string
sha:
description: The sha of the commit that triggered the workflow run
required: false
type: string
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Setup
run: echo "Do setup"

test:
runs-on: ubuntu-latest
continue-on-error: true
needs: [setup]
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./
id: current
with:
param1: 'true'

outputs:
result: "${{ steps.current.outputs.result1 }}"

assert:
runs-on: ubuntu-latest
needs: [test]
Expand All @@ -38,7 +42,6 @@ jobs:
with:
expected: 'true'
actual: "${{ needs.test.outputs.result }}"

teardown:
runs-on: ubuntu-latest
needs: [assert]
Expand Down
10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions atmos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import:
- https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml
15 changes: 0 additions & 15 deletions docs/github-action.md

This file was deleted.