@@ -21,26 +21,23 @@ jobs:
2121 - name : Build
2222 run : pnpm build
2323
24- - uses : actions/cache@v4
25- name : Share build
26- with :
27- path : ' packages/apollo-angular/build'
28- key : ${{ github.sha }}
29-
3024 - name : Pack
3125 run : pnpm pack --filter apollo-angular --out apollo-angular.tgz
3226
33- - uses : actions/cache@v4
34- name : Share tarball
27+ - uses : actions/upload-artifact@v7
28+ with :
29+ name : build
30+ path : ' packages/apollo-angular/build'
31+
32+ - uses : actions/upload-artifact@v7
3533 with :
34+ name : tarball
3635 path : ' apollo-angular.tgz'
37- key : ${{ github.sha }}
3836
39- - uses : actions/cache@v4
40- name : Share script
37+ - uses : actions/upload-artifact@v7
4138 with :
39+ name : script
4240 path : ' scripts/prepare-e2e.js'
43- key : ${{ github.sha }}
4441
4542 tests :
4643 name : Tests
@@ -59,11 +56,10 @@ jobs:
5956 - name : Install
6057 run : pnpm install
6158
62- - uses : actions/cache@v4
63- name : Share build
59+ - uses : actions/download-artifact@v8
6460 with :
65- path : ' packages/apollo-angular/ build'
66- key : ${{ github.sha }}
61+ name : build
62+ path : ' packages/apollo-angular/build/ '
6763
6864 - name : Test
6965 run : pnpm test
@@ -99,51 +95,47 @@ jobs:
9995 - angular_version : 19
10096 node_version : 24
10197 steps :
102- - uses : pnpm/action-setup@v5
103- with :
104- version : latest
10598 - name : Use Node.js ${{ matrix.node_version }}
10699 uses : actions/setup-node@master
107100 with :
108101 node-version : ${{ matrix.node_version }}
109102
110- - uses : actions/cache@v4
111- name : Share tarball
103+ - uses : actions/download-artifact@v8
112104 with :
113- path : ' apollo-angular.tgz'
114- key : ${{ github.sha }}
105+ name : tarball
115106
116- - uses : actions/cache@v4
117- name : Share script
107+ - uses : actions/download-artifact@v8
118108 with :
119- path : ' scripts/prepare-e2e.js'
120- key : ${{ github.sha }}
109+ name : script
121110
122111 - name : Install Angular CLI
123- run : pnpm install @angular/cli@${{ matrix.angular_version }} --global
112+ run : npm install @angular/cli@${{ matrix.angular_version }} --global
124113
125114 - name : ng new
126- run : ng new testapp --package-manager pnpm --defaults --minimal --skip-git
115+ run : ng new testapp --package-manager npm --defaults --minimal --skip-git
127116
128117 - name : ng add apollo-angular
129118 run :
130119 (cd testapp && ng add ../apollo-angular.tgz --graphql '${{ matrix.graphql_version }}.0.0'
131- --defaults --verbose --skip-confirmation)
120+ --defaults --verbose --skip-confirmation )
132121
133122 - name : ng build
134- run : (cd testapp && pnpm ng run testapp:build:production)
123+ run : (cd testapp && ng run testapp:build:production)
135124
136125 - name : Setup E2E tests
137126 run : |
138127 sudo apt-get update
139128 sudo apt-get install libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
140- (cd testapp && pnpm add -D cypress-fail-on-console-error)
129+ (cd testapp && npm add -D cypress-fail-on-console-error)
141130
142131 - name : ng add cypress
143132 run : (cd testapp && ng add @cypress/schematic --defaults --verbose --skip-confirmation)
144133
134+ - name : cypress install
135+ run : (cd testapp && npm exec cypress install)
136+
145137 - name : Update Angular code
146- run : ./scripts /prepare-e2e.js testapp ${{ matrix.graphql_version }}
138+ run : node . /prepare-e2e.js testapp ${{ matrix.graphql_version }}
147139
148140 - name : ng e2e
149- run : (cd testapp && pnpm ng run testapp:cypress-run:production)
141+ run : (cd testapp && ng run testapp:cypress-run:production)
0 commit comments