2727 - name : Checkout repository
2828 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
2929
30- - name : Install Node.js
31- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
32- with :
33- node-version-file : " .nvmrc"
34- cache : " npm"
35-
36- - name : Install JavaScript dependencies
37- run : npm ci
30+ - name : Setup Node
31+ uses : alphagov/forms-deploy/.github/actions/setup-node@3f932444eb8e136b7f58bb677e7df7fb2ec31e35
3832
3933 - name : Run linter
4034 run : npm run lint:scss
4640 - name : Checkout repository
4741 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
4842
49- - name : Install Node.js
50- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
51- with :
52- node-version-file : " .nvmrc"
53- cache : " npm"
54-
55- - name : Install JavaScript dependencies
56- run : npm ci
43+ - name : Setup Node
44+ uses : alphagov/forms-deploy/.github/actions/setup-node@3f932444eb8e136b7f58bb677e7df7fb2ec31e35
5745
5846 - name : Run linter
5947 run : npm run lint:javascript
7563 POSTGRES_PASSWORD : postgres
7664
7765 - name : Setup ChromeDriver
78- uses : nanasess/setup-chromedriver@e93e57b843c0c92788f22483f1a31af8ee48db25 # v2.3.0
79- with :
80- chromedriver-version : ' 128.0.6613.8600'
81- chromeapp : chrome
82-
83- - name : Purge Google Chrome
84- run : |
85- sudo apt-get purge google-chrome-stable
86-
87- - name : Setup Chrome
88- uses : browser-actions/setup-chrome@b94431e051d1c52dcbe9a7092a4f10f827795416 # v2.1.0
89- with :
90- chrome-version : 128
91- install-chromedriver : ' false'
66+ uses : alphagov/forms-deploy/.github/actions/setup-chromedriver@3f932444eb8e136b7f58bb677e7df7fb2ec31e35
9267
9368 - name : Checkout repository
9469 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9873 with :
9974 bundler-cache : true
10075
101- - name : Install Node.js
102- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
103- with :
104- node-version-file : " .nvmrc"
105- cache : " npm"
106-
107- - name : Install JavaScript dependencies
108- run : npm ci
76+ - name : Setup Node
77+ uses : alphagov/forms-deploy/.github/actions/setup-node@3f932444eb8e136b7f58bb677e7df7fb2ec31e35
10978
11079 - name : Run Vite build
11180 run : bin/vite build
@@ -128,17 +97,8 @@ jobs:
12897 with :
12998 bundler-cache : true
13099
131- - name : Install Node.js
132- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
133- with :
134- node-version-file : " .nvmrc"
135- cache : " npm"
136-
137- - name : Install JavaScript dependencies
138- run : npm ci
139-
140- - name : Run Vite build
141- run : bin/vite build
100+ - name : Setup Node
101+ uses : alphagov/forms-deploy/.github/actions/setup-node@3f932444eb8e136b7f58bb677e7df7fb2ec31e35
142102
143103 - name : Run Vitest
144104 run : npm run test
0 commit comments