-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (46 loc) · 1.3 KB
/
check-build-and-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
name: Check Build and Test
on:
pull_request:
branches:
- main
env:
NODE_VERSION: 16.x
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node Version ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install PNPM
run: npm install -g pnpm
- name: Install RushJS
run: npm install -g @microsoft/rush
- name: Verify Change Logs
run: rush change --verify
- name: Verify each project's package.json
run: rush check
- name: Install Dependencies
run: rush update
- name: Build Packages
run: rush rebuild --verbose
- name: Install E2E Tester
working-directory: ./e2e
run: pnpm install
- name: Install Examples Dependencies
working-directory: ./e2e
run: pnpm ex:install:unix
- name: Build Examples
working-directory: ./e2e
run: pnpm ex:build:unix
- name: Prepare to Run Test E2E
working-directory: ./e2e
run: pnpm install -g serve && pnpm playwright install
- name: Test E2E
working-directory: ./e2e
run: pnpm test:headless