Set up ngrok and use sudo
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
6f69f942cf
commit
d2ffa22204
2 changed files with 31 additions and 21 deletions
25
.github/workflows/integration-tests.yml
vendored
25
.github/workflows/integration-tests.yml
vendored
|
|
@ -26,23 +26,38 @@ jobs:
|
|||
run: make build
|
||||
|
||||
- name: Setup GARM
|
||||
run: sudo --preserve-env ./test/integration/scripts/setup-garm.sh
|
||||
run: ./test/integration/scripts/setup-garm.sh
|
||||
env:
|
||||
GH_OAUTH_TOKEN: ${{ secrets.GH_OAUTH_TOKEN }}
|
||||
CREDENTIALS_NAME: test-garm-creds
|
||||
|
||||
- name: Generate secrets
|
||||
run: |
|
||||
function randomStringGenerator() {
|
||||
tr -dc "a-zA-Z0-9@#$%^&*()_+?><~\`;'" </dev/urandom | head -c 64 ; echo '';
|
||||
}
|
||||
echo "GARM_PASSWORD=$(randomStringGenerator)" >> $GITHUB_ENV
|
||||
echo "REPO_WEBHOOK_SECRET=$(randomStringGenerator)" >> $GITHUB_ENV
|
||||
echo "ORG_WEBHOOK_SECRET=$(randomStringGenerator)" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up ngrok
|
||||
id: ngrok
|
||||
uses: gabriel-samfira/ngrok-tunnel-action@v1.0
|
||||
with:
|
||||
ngrok_authtoken: ${{ secrets.NGROK_AUTH_TOKEN }}
|
||||
port: 9997
|
||||
tunnel_type: http
|
||||
|
||||
|
||||
- name: Run integration tests
|
||||
run: go run ./test/integration/e2e.go
|
||||
env:
|
||||
GARM_BASE_URL: http://127.0.0.1:9997
|
||||
GARM_BASE_URL: ${{ steps.ngrok.outputs.tunnel-url }}
|
||||
GARM_USERNAME: admin
|
||||
GARM_PASSWORD: ${{ secrets.GARM_ADMIN_PASSWORD }}
|
||||
GARM_FULLNAME: Local GARM Admin
|
||||
GARM_EMAIL: admin@example.com
|
||||
GARM_NAME: local_garm
|
||||
CREDENTIALS_NAME: test-garm-creds
|
||||
REPO_WEBHOOK_SECRET: ${{ secrets.REPO_WEBHOOK_SECRET }}
|
||||
ORG_WEBHOOK_SECRET: ${{ secrets.ORG_WEBHOOK_SECRET }}
|
||||
|
||||
- name: Show GARM logs
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue