Run Integration Test for commit 76df366b5f00dbabe273c3cf0b9a9302016920e2 #13
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
name: Integration Tests | |
run-name: Run Integration Test for commit ${{ github.sha }} | |
on: | |
push: | |
branches: | |
- ci/* | |
workflow_dispatch: {} | |
jobs: | |
ping-environment: | |
name: Ping the configured environment | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Configure variables | |
run: | | |
if [ ${{ vars.LL_USE_STAGE }} == 'true' ]; then echo "LOOTLOCKER_URL=${{ SECRETS.LL_STAGE_URL }}" >> $GITHUB_ENV; else echo "LOOTLOCKER_URL=${{ SECRETS.LL_PROD_URL }}" >> $GITHUB_ENV; fi | |
if [ ${{ vars.LL_USE_STAGE }} == 'true' ]; then echo "LOOTLOCKER_TEST_VAR=true" >> $GITHUB_ENV; else echo "LOOTLOCKER_TEST_VAR=false" >> $GITHUB_ENV; fi | |
echo ${{ env.LOOTLOCKER_TEST_VAR }} | |
- name: Echo config | |
run: | | |
echo ${{ env.LOOTLOCKER_TEST_VAR }} | |
#- name: Setup Tailscale | |
# if: ${{ vars.LL_USE_STAGE == 'true' }} | |
# uses: tailscale/github-action@v2 | |
# with: | |
# oauth-client-id: ${{ SECRETS.CI_TS_OAUTH_CLIENT_ID }} | |
# oauth-secret: ${{ SECRETS.CI_TS_OAUTH_SECRET }} | |
# tags: tag:ci | |
#- name: Ping env | |
# run: | | |
# curl -X POST "${{ SECRETS.LL_STAGE_URL }}/game/v2/session/guest" -H "Content-Type: application/json" -d "{\"game_key\": \"dev_dc52acb52a8b49be81761e709f1df9fd\", \"game_version\": \"0.10.0.0\"}" |