Skip to content

Commit 500b4d9

Browse files
committed
Test github action
1 parent 56972b8 commit 500b4d9

3 files changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Jasmine Browser Tests
2+
3+
on:
4+
push:
5+
branches: [main, sync]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
22+
- name: Install Firefox dependencies
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y libgtk-3-0 libdbus-glib-1-2
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run Jasmine Browser Tests
31+
run: npx jasmine-browser-runner runSpecs

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"author": "Jess Fairbairn",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"jasmine-browser-runner": "^2.3.0",
15-
"jasmine-core": "^5.1.1",
14+
"jasmine-browser-runner": "^3.0.0",
15+
"jasmine-core": "^5.6.0",
1616
"karma": "^6.4.1",
1717
"karma-firefox-launcher": "^2.1.2",
1818
"karma-jasmine": "^5.1.0",

spec/support/jasmine-browser.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"stopOnSpecFailure": false,
1616
"random": true
1717
},
18+
"listenAddress": "localhost",
19+
"hostname": "localhost",
1820
"browser": {
19-
"name": "firefox"
21+
"name": "headlessFirefox"
2022
}
2123
}

0 commit comments

Comments
 (0)