-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (37 loc) · 921 Bytes
/
main.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
name: Node.js CI
on:
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
version: 8.8.0
- name: Install Packages
run: |
pnpm i
- name: Build Packages
run: |
pnpm build
pnpm i # create bin scripts
- name: Test Packages
run: |
pnpm test
- name: Build and Test Examples
run: |
cd examples/nx-workspace-old
pnpm playwright install --with-deps
cd apps/ng-app-cli
# npx ng add ../../../packages/angular --skip-confirmation
npx tsc --noEmit --project tsconfig.app.json
cd -
pnpm build:all
pnpm test:all
pnpm e2e:all