Skip to content

Commit e3adf02

Browse files
authored
chore: Replace Makefile with atmos.yaml (#149)
1 parent 5a52ad7 commit e3adf02

File tree

5 files changed

+32
-49
lines changed

5 files changed

+32
-49
lines changed

.github/workflows/test-negative.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
name: Test example negative
22
on:
3-
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4-
# #
5-
# # Added pull_request to register workflow from the PR.
6-
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7-
# pull_request: {}
8-
workflow_dispatch: {}
9-
3+
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4+
# #
5+
# # Added pull_request to register workflow from the PR.
6+
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7+
# pull_request: {}
8+
workflow_dispatch:
9+
inputs:
10+
ref:
11+
description: The fully-formed ref of the branch or tag that triggered the workflow run
12+
required: false
13+
type: string
14+
sha:
15+
description: The sha of the commit that triggered the workflow run
16+
required: false
17+
type: string
1018
jobs:
1119
setup:
1220
runs-on: ubuntu-latest
1321
steps:
1422
- name: Setup
1523
run: echo "Do setup"
16-
1724
test:
1825
runs-on: ubuntu-latest
1926
needs: [setup]
2027
continue-on-error: true
2128
steps:
2229
- name: Checkout
2330
uses: actions/checkout@v4
24-
2531
- uses: ./
2632
id: current
2733
with:
2834
sha: ${{ github.sha }}
29-
3035
outputs:
3136
result: "false"
32-
3337
assert:
3438
runs-on: ubuntu-latest
3539
needs: [test]
@@ -38,7 +42,6 @@ jobs:
3842
with:
3943
expected: 'false'
4044
actual: "${{ needs.test.outputs.result }}"
41-
4245
teardown:
4346
runs-on: ubuntu-latest
4447
needs: [assert]

.github/workflows/test-positive.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
name: Test example positive
22
on:
3-
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4-
# #
5-
# # Added pull_request to register workflow from the PR.
6-
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7-
# pull_request: {}
8-
workflow_dispatch: {}
9-
3+
# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4+
# #
5+
# # Added pull_request to register workflow from the PR.
6+
# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7+
# pull_request: {}
8+
workflow_dispatch:
9+
inputs:
10+
ref:
11+
description: The fully-formed ref of the branch or tag that triggered the workflow run
12+
required: false
13+
type: string
14+
sha:
15+
description: The sha of the commit that triggered the workflow run
16+
required: false
17+
type: string
1018
jobs:
1119
setup:
1220
runs-on: ubuntu-latest
1321
steps:
1422
- name: Setup
1523
run: echo "Do setup"
16-
1724
test:
1825
runs-on: ubuntu-latest
1926
continue-on-error: true
2027
needs: [setup]
2128
steps:
2229
- name: Checkout
2330
uses: actions/checkout@v4
24-
2531
- uses: ./
2632
id: current
2733
with:
2834
sha: ${{ github.sha }}
29-
3035
outputs:
3136
result: "true"
32-
3337
assert:
3438
runs-on: ubuntu-latest
3539
needs: [test]
@@ -38,7 +42,6 @@ jobs:
3842
with:
3943
expected: 'true'
4044
actual: "${{ needs.test.outputs.result }}"
41-
4245
teardown:
4346
runs-on: ubuntu-latest
4447
needs: [assert]

Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

atmos.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import:
2+
- https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml

docs/github-action.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)