-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (51 loc) · 1.56 KB
/
Copy pathe2e.yml
File metadata and controls
62 lines (51 loc) · 1.56 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
name: E2E Suite
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
e2e:
timeout-minutes: 10
runs-on: ubuntu-latest
name: E2E Tests
env:
NPM_PUBLISH_REGISTRY: 'http://localhost:4873'
UNSAFE_HTTP_WHITELIST: 'localhost'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Copy Playground for E2E Tests
run: |
mkdir -p "$TEST_PROJECTS_DIR"
cp -a e2e/projects/. "$TEST_PROJECTS_DIR/"
env:
TEST_PROJECTS_DIR: "${{ runner.temp }}/projects"
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 22.22.0
- name: Install Dependencies
run: yarn install --immutable
- name: Build
run: yarn build:publishable
- name: Remove Verdaccio Storage
run: rm -rf e2e/verdaccio-storage
- name: Publish to Private Registry
run: yarn run "e2e:publish-to-private-registry"
- name: Update Projects from Private Registry
run: TEST_PROJECTS_DIR=${{ runner.temp }}/projects yarn run "e2e:update-projects-from-private-registry"
- name: Build E2E Projects
run: TEST_PROJECTS_DIR=${{ runner.temp }}/projects yarn run "e2e:build-projects"
- name: Upload E2E Project API Clients
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: e2e-projects-api-clients
path: |
${{ runner.temp }}/projects/**/src