-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test Action | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Copy meshstack_token.json to temp directory | ||
run: | | ||
mkdir -p $RUNNER_TEMP | ||
cp test_data/meshstack_token.json $RUNNER_TEMP/meshstack_token.json | ||
- name: Setup Meshstack Authentication | ||
id: setup-meshstack-auth | ||
uses: meshcloud/actions-register-source@main | ||
with: | ||
steps: | | ||
[ | ||
{ "id": "terraform-validate", "displayName": "terraform validate" }, | ||
{ "id": "terraform-plan", "displayName": "terraform plan" }, | ||
{ "id": "terraform-apply", "displayName": "terraform apply" } | ||
] | ||
client_id: ${{ secrets.CLIENT_ID }} | ||
key_secret: ${{ secrets.KEY_SECRET }} | ||
|
||
- name: Run Action | ||
id: run-action | ||
uses: ./ | ||
with: | ||
step_id: 'terrafrom-validate' | ||
status: 'SUCCESS' | ||
user_message: 'User message' | ||
system_message: 'System message' | ||
is_final: 'true' | ||
summary: 'Summary message' | ||
|
||
- name: Display temp directory | ||
run: echo "Temporary directory is ${{ steps.run-action.outputs.temp_directory }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"inputs": { | ||
"buildingBlockRun": "eyJtZXRhZGF0YSI6eyJ1dWlkIjoiZWM3YjgyMTMtNDk0YS00MDAyLTlhNGYtOGQzMjEwMThlN2Q4In0sIl9saW5rcyI6eyJtZXNoc3RhY2tCYXNlVXJsIjp7ImhyZWYiOiJodHRwczovL2ZlZGVyYXRpb24uZGV2Lm1lc2hjbG91ZC5pbyJ9fSwic3BlYyI6eyJidWlsZGluZ0Jsb2NrIjp7InNwZWMiOnsiaW5wdXRzIjpbeyJwcm9qZWN0TmFtZSI6ImV4YW1wbGVQcm9qZWN0IiwiZW5pcm9ubWVudCI6InByb2R1Y3Rpb24iLCJyZWdpb24iOiJ1cy13ZXN0LTEifV19fX19Cg==" | ||
} | ||
} |