This repository was archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (49 loc) · 1.52 KB
/
test.yml
File metadata and controls
60 lines (49 loc) · 1.52 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
name: Tests
on:
push:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.PRENET_GCR_KEY }}
- name: Setup Docker
run: |
docker pull gcr.io/polybase-prenet/polybase:latest
docker run -d -p 8080:8080 --name=myserver gcr.io/polybase-prenet/polybase:latest
- name: Wait for port to be ready
run: |
timeout 5 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8080)" != "200" ]]; do sleep 1; done' || false
- name: CURL
run: curl -sSf http://localhost:8080
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Load schema
run: yarn load
env:
REACT_APP_API_URL: "http://127.0.0.1:8080"
# Don't worry, this is a test key
PRIVATE_KEY: "0xc3ad5027324569eab955e09b4d9f96a3e1e4601c16f1a20966b7b26dff7b5995"
- name: Run Playwright tests
id: test
run: yarn test:ui --workers 16
env:
REACT_APP_API_URL: "http://127.0.0.1:8080"
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30