-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from mihaelabalutoiu/add-webhooks-integration…
…-tests Add webhooks integration tests for `organization` and `repository`
- Loading branch information
Showing
4 changed files
with
341 additions
and
32 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 |
---|---|---|
|
@@ -22,11 +22,20 @@ jobs: | |
- name: Build GARM | ||
run: make build | ||
|
||
- name: Set up ngrok | ||
id: ngrok | ||
uses: gabriel-samfira/[email protected] | ||
with: | ||
ngrok_authtoken: ${{ secrets.NGROK_AUTH_TOKEN }} | ||
port: 9997 | ||
tunnel_type: http | ||
|
||
- name: Setup GARM | ||
run: ./test/integration/scripts/setup-garm.sh | ||
env: | ||
GH_OAUTH_TOKEN: ${{ secrets.GH_OAUTH_TOKEN }} | ||
CREDENTIALS_NAME: test-garm-creds | ||
GARM_BASE_URL: ${{ steps.ngrok.outputs.tunnel-url }} | ||
|
||
- name: Generate secrets | ||
run: | | ||
|
@@ -46,14 +55,6 @@ jobs: | |
echo "REPO_WEBHOOK_SECRET=$REPO_WEBHOOK_SECRET" >> $GITHUB_ENV | ||
echo "ORG_WEBHOOK_SECRET=$ORG_WEBHOOK_SECRET" >> $GITHUB_ENV | ||
- name: Set up ngrok | ||
id: ngrok | ||
uses: gabriel-samfira/[email protected] | ||
with: | ||
ngrok_authtoken: ${{ secrets.NGROK_AUTH_TOKEN }} | ||
port: 9997 | ||
tunnel_type: http | ||
|
||
- name: Create logs directory | ||
if: always() | ||
run: sudo mkdir -p /artifacts-logs && sudo chmod 777 /artifacts-logs | ||
|
@@ -72,6 +73,7 @@ jobs: | |
ORG_NAME: gsamfira | ||
REPO_NAME: garm-testing | ||
CREDENTIALS_NAME: test-garm-creds | ||
WORKFLOW_FILE_NAME: test.yml | ||
GH_TOKEN: ${{ secrets.GH_OAUTH_TOKEN }} | ||
|
||
- name: Show GARM logs | ||
|
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
Oops, something went wrong.