Skip to content

Commit 2d1474d

Browse files
author
Deepak Kumar
committed
Update workflows: upgrade actions, Node.js versions, and transition to Playwright for browser tests
1 parent aa6e860 commit 2d1474d

4 files changed

Lines changed: 16 additions & 33 deletions

File tree

.github/workflows/linux.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
# This is a basic workflow that is manually triggered
1+
name: Chromium, Firefox
22

3-
name: Firefox, Chrome
4-
5-
# Controls when the action will run. Workflow runs when manually triggered using the UI
6-
# or API.
73
on: [push, pull_request]
84

95
# Declare default permissions as read only.
106
permissions: read-all
117

128
jobs:
139
build:
14-
# The type of runner that the job will run on
1510
runs-on: ubuntu-latest
1611

17-
# Steps represent a sequence of tasks that will be executed as part of the job
1812
steps:
19-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
2014
- run: bin/setup-rabbit.sh
2115
- name: Use Node.js
22-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
2317
with:
24-
node-version: '18.x'
18+
node-version: '22.x'
2519
- run: npm ci
2620
- run: npm run lint
2721
- run: npm run build
28-
- run: npx karma start spec/karma.conf.js --single-run --browsers=ChromeNoSandboxHeadless
29-
- run: npx karma start spec/karma.conf.js --single-run --browsers=FirefoxHeadless
22+
- run: npx playwright install --with-deps chromium firefox
23+
- run: npx playwright test --project=chromium --project=firefox
3024
- run: npm pack
3125
- run: bin/rx-stomp.sh

.github/workflows/node-js.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
# This is a basic workflow that is manually triggered
2-
31
name: NodeJS Test
42

5-
# Controls when the action will run. Workflow runs when manually triggered using the UI
6-
# or API.
73
on: [push, pull_request]
84

95
# Declare default permissions as read only.
106
permissions: read-all
117

128
jobs:
139
build:
14-
# The type of runner that the job will run on
1510
runs-on: ubuntu-latest
1611

1712
strategy:
1813
matrix:
19-
version: [16, 18, 19]
14+
version: [18, 20, 22]
2015

21-
# Steps represent a sequence of tasks that will be executed as part of the job
2216
steps:
23-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
2418
- run: bin/setup-rabbit.sh
2519
- name: Use Node.js
26-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2721
with:
2822
node-version: ${{ matrix.version }}
2923
- run: npm ci

.github/workflows/osx.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
# This is a basic workflow that is manually triggered
1+
name: WebKit (Safari)
22

3-
name: Safari
4-
5-
# Controls when the action will run. Workflow runs when manually triggered using the UI
6-
# or API.
73
on: [push, pull_request]
84

95
# Declare default permissions as read only.
106
permissions: read-all
117

128
jobs:
139
build:
14-
# The type of runner that the job will run on
1510
runs-on: macos-latest
1611

17-
# Steps represent a sequence of tasks that will be executed as part of the job
1812
steps:
19-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
2014
- run: bin/osx/setup-rabbit.sh
2115
- name: Use Node.js
22-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
2317
with:
24-
node-version: '18.x'
18+
node-version: '22.x'
2519
- run: npm ci
26-
- run: npm install "https://github.com/RLovelett/karma-safari-launcher.git#safari-webdriver"
2720
- run: npm run build
28-
- run: npx karma start spec/karma.conf.js --single-run --browsers=Safari
21+
- run: npx playwright install webkit
22+
- run: npx playwright test --project=webkit

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
- run: bin/setup-rabbit.sh
2424
- run: npm ci
25+
- run: npx playwright install --with-deps
2526

2627
- name: Extract tag name
2728
id: tag

0 commit comments

Comments
 (0)