-
Notifications
You must be signed in to change notification settings - Fork 109
65 lines (53 loc) · 1.84 KB
/
test-web-console-e2e.yml
File metadata and controls
65 lines (53 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Web Console Integration Tests
on:
workflow_call:
workflow_dispatch:
jobs:
web-console-integration-tests:
name: Web Console Integration Tests
runs-on: [k8s-runners-amd64]
container:
image: mcr.microsoft.com/playwright:v1.58.2-noble
services:
pipeline-manager:
image: ${{ vars.FELDERA_IMAGE_NAME }}:sha-${{ github.sha }}
env:
AUTH_PROVIDER: none
RUST_LOG: info
RUST_BACKTRACE: 1
options: >-
--health-cmd "curl --fail --silent --max-time 2 http://localhost:8080/healthz || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
run: |
npm install -g --prefix /tmp/bun bun@1.3.10
echo "/tmp/bun/bin" >> $GITHUB_PATH
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Sync SvelteKit
run: bunx svelte-kit sync
working-directory: js-packages/web-console
- name: Verify pipeline-manager is reachable
run: curl -fsSL --retry 5 --retry-delay 2 --retry-connrefused http://localhost:8080/healthz
- name: Run vitest integration tests
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: bun run test-integration
working-directory: js-packages/web-console
env:
FELDERA_API_URL: http://localhost:8080
- name: Run Playwright e2e tests
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: bun run test-e2e
working-directory: js-packages/web-console
env:
PLAYWRIGHT_API_ORIGIN: http://localhost:8080
PLAYWRIGHT_APP_ORIGIN: http://localhost:8080
- name: Show Kubernetes node
if: always()
run: |
echo "K8S node: ${K8S_NODE_NAME}"