-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- In workflow_dispatch mode, fill in the repo and email for us. We still want this to be required in workflow_call (to prevent unknowingly testing against the wrong test apps). - rm klotho-repo, which we don't need. If another repo invokes this workflow, it'll just compile its own klotho (that is, checkout will check out that other repo, not klothoplatform/klotho -- which is just what we want).
- Loading branch information
Yuval Shavit
authored and
Yuval Shavit
committed
Jan 9, 2023
1 parent
b3f0efe
commit c5fec37
Showing
2 changed files
with
4 additions
and
12 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
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 |
---|---|---|
|
@@ -5,28 +5,26 @@ on: | |
description: The repo of the app to test, in Organization/Repo format | ||
required: true | ||
type: string | ||
default: klothoplatform/sample-apps | ||
test-app-ref: | ||
description: Git SHA or branch name of test-app-repo | ||
required: false | ||
type: string | ||
default: main | ||
test-app-overrides: | ||
description: comma-delimited list of dirs within test-app-repo | ||
description: comma-delimited list of dirs within test-app-repo to run (if empty, runs all) | ||
required: false | ||
type: string | ||
klotho-login: | ||
description: email address to log into Klotho | ||
required: true | ||
type: string | ||
default: [email protected] | ||
region: | ||
description: the AWS region to deploy to | ||
required: false | ||
type: string | ||
default: us-east-1 | ||
klotho-repo: | ||
description: org/repo of the Klotho source | ||
required: false | ||
type: string | ||
workflow_call: | ||
# same inputs as workflow_dispatch | ||
inputs: | ||
|
@@ -52,10 +50,6 @@ on: | |
required: false | ||
type: string | ||
default: us-east-1 | ||
klotho-repo: | ||
description: org/repo of the Klotho source | ||
required: false | ||
type: string | ||
env: | ||
INTEG_TEST_ATTEMPTS: 3 # how many times we'll try to run "npm run integ-test" before we mark it as failed. See klothoplatform/sample-apps#44 | ||
name: run integration tests | ||
|
@@ -99,8 +93,6 @@ jobs: | |
steps: | ||
- name: checkout klotho | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ inputs.klotho-repo }} | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
|