-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
57 lines (48 loc) Β· 1.55 KB
/
e2e-nm-angular-workflow.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
49
50
51
52
53
54
55
56
57
on:
schedule:
- cron: '0 */4 * * *'
push:
branches:
- master
paths:
- .github/actions/prepare/action.yml
- .github/workflows/e2e-nm-angular-workflow.yml
- scripts/e2e-setup-ci.sh
- packages/yarnpkg-nm/sources/hoist.ts
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
- packages/plugin-nm/sources/NodeModulesLinker.ts
pull_request:
paths:
- .github/actions/prepare/action.yml
- .github/workflows/e2e-nm-angular-workflow.yml
- scripts/e2e-setup-ci.sh
- packages/yarnpkg-nm/sources/hoist.ts
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
- packages/plugin-nm/sources/NodeModulesLinker.ts
name: 'E2E NM Angular'
jobs:
chore:
strategy:
matrix:
platform:
- ubuntu-latest
- windows-latest
name: 'Validating Angular install via node-modules linker on ${{matrix.platform}}'
runs-on: ${{matrix.platform}}
steps:
- name: Enable git longpaths
run: git config --global core.longpaths true
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh nm
# TODO: Angular should be fixed to detect the correct package manager to install with
# but for now we need to specify it
yarn dlx -p @angular/cli@next ng new berry-angular --interactive=false --package-manager yarn
cd berry-angular
yarn ng build --aot
shell: bash
env:
YARN_ENABLE_GLOBAL_CACHE: true
YARN_COMPRESSION_LEVEL: 0