-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use argocd-commenter-test-fixture repository for e2e test (#563)
- Loading branch information
Showing
7 changed files
with
35 additions
and
29 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 |
---|---|---|
|
@@ -59,10 +59,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# deploy Argo CD | ||
- run: git config user.name ci | ||
- run: git config user.email [email protected] | ||
# set up fixture | ||
- uses: cybozu/octoken-action@v1 | ||
id: octoken | ||
with: | ||
github_app_id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }} | ||
github_app_private_key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: int128/argocd-commenter-e2e-test | ||
path: e2e_test/argocd-commenter-e2e-test | ||
token: ${{ steps.octoken.outputs.token }} | ||
- run: make -C e2e_test setup-fixture | ||
|
||
# deploy Argo CD | ||
- run: make -C e2e_test cluster | ||
- run: make -C e2e_test deploy-argocd | ||
|
||
|
@@ -99,15 +109,13 @@ jobs: | |
env: | ||
PULL_REQUEST_BODY: "e2e-test #${{ github.event.pull_request.number }}" | ||
DEPLOYMENT_URL: ${{ steps.deployment-app1.outputs.url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }} | ||
- run: make -C e2e_test test2 | ||
env: | ||
PULL_REQUEST_BODY: "e2e-test #${{ github.event.pull_request.number }}" | ||
DEPLOYMENT_URL: ${{ steps.deployment-app2.outputs.url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }} | ||
|
||
- run: make -C e2e_test cleanup-fixture | ||
if: always() | ||
- run: make -C e2e_test logs-argocd | ||
if: always() | ||
- run: make -C e2e_test logs-controller | ||
|
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 |
---|---|---|
|
@@ -25,3 +25,4 @@ bin | |
|
||
# e2e test | ||
/e2e_test/output/ | ||
/e2e_test/argocd-commenter-e2e-test/ |
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
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