Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci!: update workflow #454

Merged
merged 4 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Node.js CI

on: [ push, pull_request ]

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -10,12 +15,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12, 14, 15, 16]
node-version: [14, 16, 18]

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.4.0
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: node --version
Expand All @@ -26,6 +33,9 @@ jobs:
CI: true

automerge:
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
needs: test
runs-on: ubuntu-latest
permissions:
Expand All @@ -34,4 +44,5 @@ jobs:
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
exclude: 'chalk;pretty-bytes'
github-token: ${{ secrets.github_token }}
2 changes: 1 addition & 1 deletion samples/customise-verifyBody-workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function startBench () {
const url = 'http://localhost:' + server.address().port

autocannon({
url: url,
url,
connections: 1000,
duration: 10,
workers: 2,
Expand Down
4 changes: 2 additions & 2 deletions samples/customise-verifyBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function startBench () {
const url = 'http://localhost:' + server.address().port

autocannon({
url: url,
url,
connections: 1000,
duration: 10,
verifyBody: verifyBody
verifyBody
}, finishedBench)

function verifyBody (body) {
Expand Down
Binary file modified test/keystore.pkcs12
Binary file not shown.