Skip to content

Commit 1762ce7

Browse files
committed
Change port number; try GHA
1 parent d17abaa commit 1762ce7

3 files changed

Lines changed: 35 additions & 9 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main, rc-**]
88
pull_request:
99
schedule:
10-
- cron: '0 6 * * 1' # every monday
10+
- cron: "0 6 * * 1" # every monday
1111

1212
name: Package checks
1313

@@ -20,3 +20,29 @@ jobs:
2020
uses: rstudio/shiny-workflows/.github/workflows/R-CMD-check.yaml@v1
2121
with:
2222
ubuntu: "ubuntu-20.04 ubuntu-latest"
23+
permessage-deflate-test:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Setup R
29+
uses: r-lib/actions/setup-r@v2
30+
31+
- name: Install R package dependencies
32+
uses: r-lib/actions/setup-r-dependencies@v2
33+
34+
- name: Install R package
35+
run: R CMD INSTALL .
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@v2
39+
with:
40+
node-version: "18"
41+
42+
- name: Install npm dependencies
43+
run: npm install
44+
working-directory: deflate-client
45+
46+
- name: Run npm tests
47+
run: npm test
48+
working-directory: deflate-client

deflate-client/index.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ async function runTest(address, perMessageDeflate) {
4040

4141
async function main() {
4242
await sleep(1000);
43-
await runTest("ws://127.0.0.1:9100/", false);
44-
await runTest("ws://127.0.0.1:9100/", true);
45-
await runTest("ws://127.0.0.1:9100/", { threshold: 0 });
46-
await runTest("ws://127.0.0.1:9100/", { threshold: 0, serverMaxWindowBits: 9 });
47-
await runTest("ws://127.0.0.1:9100/", {
43+
await runTest("ws://127.0.0.1:14252/", false);
44+
await runTest("ws://127.0.0.1:14252/", true);
45+
await runTest("ws://127.0.0.1:14252/", { threshold: 0 });
46+
await runTest("ws://127.0.0.1:14252/", { threshold: 0, serverMaxWindowBits: 9 });
47+
await runTest("ws://127.0.0.1:14252/", {
4848
threshold: 0,
4949
serverMaxWindowBits: 9,
5050
clientMaxWindowBits: 9
5151
});
52-
await runTest("ws://127.0.0.1:9100/", {
52+
await runTest("ws://127.0.0.1:14252/", {
5353
threshold: 0,
5454
serverMaxWindowBits: 9,
5555
clientMaxWindowBits: 9,
5656
serverNoContextTakeover: true
5757
});
58-
await runTest("ws://127.0.0.1:9100/", {
58+
await runTest("ws://127.0.0.1:14252/", {
5959
threshold: 0,
6060
serverMaxWindowBits: 9,
6161
clientMaxWindowBits: 9,

deflate-client/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ server <- list(
2525
}
2626
)
2727

28-
httpuv::runServer("127.0.0.1", 9100, server)
28+
httpuv::runServer("127.0.0.1", 14252, server)

0 commit comments

Comments
 (0)