-
Notifications
You must be signed in to change notification settings - Fork 160
41 lines (35 loc) · 1.07 KB
/
ci-cookbook.yml
File metadata and controls
41 lines (35 loc) · 1.07 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
name: CI cookbook
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: corepack enable
- run: yarn install
# Build gl-react packages (needed by cookbook)
- name: Build gl-react packages
run: |
for d in packages/gl-react packages/gl-react-dom; do
yarn workspace gl-react-dev exec babel --root-mode upward --source-maps --extensions '.ts,.tsx' -d "$d/lib" "$d/src"
done
# Install Playwright browsers
- name: Install Playwright
run: yarn workspace gl-react-cookbook e2e:install
# Run Playwright tests
- name: Run Playwright tests
run: yarn workspace gl-react-cookbook e2e
# Upload test results on failure
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cookbook-test-results
path: packages/cookbook/test-results/
retention-days: 7