Skip to content

Run Integration Test for commit d6acd77f785017b213e6fecfabb6aec39780f8d1 #5

Run Integration Test for commit d6acd77f785017b213e6fecfabb6aec39780f8d1

Run Integration Test for commit d6acd77f785017b213e6fecfabb6aec39780f8d1 #5

name: Integration Tests
run-name: Run Integration Test for commit ${{ github.sha }}
on:
workflow_dispatch: {}
push:
branches:
- ci/*
jobs:
ping-environment:
name: Ping the configured environment
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Setup Tailscale
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 stage
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\"}"
- name: Echo Stage
if: ${{ ENV.LL_USE_STAGE == 'true' }}
run: echo stage
- name: Echo prod
if: ${{ ENV.LL_USE_STAGE == 'false' }}
run: echo prod