Skip to content

Commit 595561d

Browse files
authored
Merge pull request #230 from Auge19/workflow_firefox
test) add a firefox runner
2 parents 6412c34 + 52b97d6 commit 595561d

7 files changed

Lines changed: 174 additions & 181 deletions

File tree

.github/workflows/test-headless.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [22.x]
17-
jquery: ['off','on']
16+
node-version: [24]
17+
run: ['test-headless','test-headless-jquery', 'test-headless-ff']
1818

1919
steps:
2020
- name: Checkout code
@@ -32,10 +32,5 @@ jobs:
3232
- name: Run Build
3333
run: make
3434

35-
- name: Run Test-Headless (without JQuery)
36-
if: "contains(${{ matrix.jquery }}, 'off')"
37-
run: make test-headless
38-
39-
- name: Run Test-Headless (with JQuery)
40-
if: "contains(${{matrix.jquery }}, 'on')"
41-
run: make test-headless-jquery
35+
- name: Run ${{ matrix.run }}
36+
run: make ${{ matrix.run }}

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ test-headless:
2929
test-headless-jquery:
3030
$(LERNA) exec --stream -- $(MAKE) test-headless-jquery
3131

32+
test-headless-ff:
33+
$(LERNA) exec --stream -- $(MAKE) test-headless-ff
34+
3235
ci:
3336
$(LERNA) exec --stream --concurrency=1 -- $(MAKE) test-ci
3437

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
152152
sudo apt -y install ./google-chrome-stable_current_amd64.deb
153153
```
154154

155+
Install Firefox for "make test-headless-ff":
156+
```bash
157+
sudo add-apt-repository ppa:mozillateam/ppa
158+
sudo apt install xvfb firefox-esr
159+
sudo ln -s /usr/lib/firefox-esr/firefox.sh /usr/bin/firefox
160+
161+
or
162+
export FIREFOX_BIN=/usr/bin/firefox-esr
163+
```
164+
155165
## Next steps
156166

157167
There's an [issue for that](https://github.com/knockout/tko/issues/1).

0 commit comments

Comments
 (0)