Skip to content

Commit 10ff993

Browse files
committed
Add composite actions for setup ChromeDriver and Node
As part of parallelising CI into multiple jobs, abstracts these multistep proccesses into into a single step, making them easier to reuse.
1 parent e4ff60e commit 10ff993

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Setup Chrome Driver'
2+
description: 'Install Chrome Driver'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup ChromeDriver
7+
uses: nanasess/setup-chromedriver@e93e57b843c0c92788f22483f1a31af8ee48db25 # v2.3.0
8+
with:
9+
chromedriver-version: '128.0.6613.8600'
10+
chromeapp: chrome
11+
12+
- name: Purge Google Chrome
13+
run: |
14+
sudo apt-get purge google-chrome-stable
15+
shell: bash
16+
17+
- name: Setup Chrome
18+
uses: browser-actions/setup-chrome@b94431e051d1c52dcbe9a7092a4f10f827795416 # v2.1.0
19+
with:
20+
chrome-version: 128
21+
install-chromedriver: 'false'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Setup Node'
2+
description: 'Install Node and npm dependencies'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Install Node.js
7+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
8+
with:
9+
node-version-file: ".nvmrc"
10+
cache: "npm"
11+
12+
- name: Install JavaScript dependencies
13+
shell: bash
14+
run: npm ci

0 commit comments

Comments
 (0)