RealtimeAPI SDK [production euswcom] #1977
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: RealtimeAPI SDK [production euswcom] | |
on: | |
workflow_call: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 */4 * * *' # "At minute 30 past every 4th hour" | |
concurrency: | |
group: ${{ github.workflow }}-realtime-api-production-eu-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e-tests: | |
name: Run E2E tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install deps | |
uses: ./.github/actions/install | |
with: | |
NODE_VERSION: ${{ matrix.node-version }} | |
- name: Build SDKs | |
uses: ./.github/actions/build | |
with: | |
NODE_VERSION: ${{ matrix.node-version }} | |
- name: Install Playwright | |
uses: ./.github/actions/playwright | |
with: | |
PLAYWRIGHT_VERSION: '1.35.1' # TODO: Read from deps ? | |
- name: Test | |
id: run-tests | |
run: npm run -w=@sw-internal/e2e-realtime-api dev | |
env: | |
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_EUSWCOM_E2E_REALTIME_SW_TEST_CONFIG }} | |
- name: Report Result | |
if: success() || failure() | |
uses: ./.github/actions/report-test-result | |
with: | |
result: ${{ steps.run-tests.conclusion }} | |
test-suite: realtime-api | |
environment: production-euswcom | |
influxdb-bucket: ${{ secrets.INFLUXDB_BUCKET }} | |
influxdb-org: ${{ secrets.INFLUXDB_ORG }} | |
influxdb-token: ${{ secrets.INFLUXDB_TOKEN }} | |
influxdb-url: ${{ secrets.INFLUXDB_URL }} |