forked from microsoft/vscode-azureapicenter
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 868 Bytes
/
e2e.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
name: "ui-test"
on:
push:
branches: ["dev", "main"]
pull_request_target:
branches: ["dev", "main"]
jobs:
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Setup project
run: |
npm install
npm run package
- name: setup account
uses: jsdaniell/create-json@v1
with:
name: "config.json"
json: ${{ secrets.ACCOUNT_CONFIG }}
dir: "./src/test/e2e"
- run: |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" npx playwright test
working-directory: ./src/test/e2e
- if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-results
path: |
test-results