-
Notifications
You must be signed in to change notification settings - Fork 21
67 lines (60 loc) · 1.88 KB
/
test.yml
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
66
67
name: Playwright Tests
env:
CONDA_STORE_SERVER_PORT: 8000
CONDA_STORE_BASE_URL: http://localhost:8000
CONDA_STORE_AUTH: basic
CONDA_STORE_USERNAME: username
CONDA_STORE_PASSWORD: password
REACT_APP_API_URL: http://localhost:8080/conda-store/
REACT_APP_AUTH_METHOD: cookie
REACT_APP_LOGIN_PAGE_URL: http://localhost:8080/conda-store/login?next=
REACT_APP_AUTH_TOKEN:
REACT_APP_STYLE_TYPE: green-accent
REACT_APP_CONTEXT: webapp
REACT_APP_SHOW_AUTH_BUTTON: true
REACT_APP_LOGOUT_PAGE_URL: http://localhost:8080/conda-store/logout?next=/
YARN_ENABLE_IMMUTABLE_INSTALLS: false
on:
pull_request:
push:
branches:
- main
jobs:
test-conda-store-ui:
name: "unit-test conda-store-ui"
strategy:
matrix:
# cannot run on windows due to needing fake-chroot for conda-docker
# osx takes forever to get a scheduled job
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
steps:
- name: "Checkout repository 🛎"
uses: actions/checkout@v4
- name: "Set up Python"
uses: conda-incubator/setup-miniconda@v2
env:
CONDA_SOLVER: libmamba
with:
activate-environment: cs-ui-dev-env
environment-file: environment_dev.yml
auto-activate-base: false
- name: "Install Dependencies"
run: |
sudo apt install wait-for-it -y
playwright install chromium
yarn install --immutable
yarn run build
- name: "Start web server and run tests"
shell: bash -el {0}
run: |
yarn run start & pytest --video on --output test-results --screenshots true test/playwright/test_ux.py
- name: "Upload artifacts"
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: playwright-tests
path: test-results