Skip to content

Commit eb1ae50

Browse files
Upgrade vulnerable dependencies fixing npm audit reports (#145)
* Upgrade vulnerable dependencies fixing npm audit Signed-off-by: Sudheesh Singanamalla <sudheesh@cs.washington.edu> * Return to lockfile v1 for now * Trigger on push to `main`, PR with any target * Use `checkout@v4`, `setup-node@v3` * Use `npm ci` in CI * Replace `wait-action` with `sleep 10s` * Run on `ubuntu-20.04` * Revert to `hapi@20` from `21` * Update to `hapi@20.3` from `20.0.3` --------- Signed-off-by: Sudheesh Singanamalla <sudheesh@cs.washington.edu> Co-authored-by: Danyal Aytekin <danyal@alienpaper.com>
1 parent f88ad59 commit eb1ae50

File tree

3 files changed

+263
-391
lines changed

3 files changed

+263
-391
lines changed

.github/workflows/tests.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ name: Build and lint
55

66
on:
77
push:
8-
branches: # Run actions when code is committed to these branches
9-
- master
8+
branches:
9+
- main
1010
pull_request:
11-
branches: # Run actions when a PR is pushed based on one of these branches
12-
- master
1311

1412
jobs:
1513
checkout_and_test:
16-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-20.04
1715
strategy:
1816
matrix:
1917
include:
@@ -24,27 +22,24 @@ jobs:
2422

2523
steps:
2624
- name: Checkout code from ${{ github.repository }}
27-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2826
- name: Setup node
29-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v3
3028
with:
3129
node-version: ${{ matrix.node-version }}
3230
- name: MongoDB in GitHub Actions
3331
uses: supercharge/mongodb-github-action@1.3.0
3432
with:
3533
mongodb-version: 3.4
3634
- name: Install dependencies
37-
run: npm i
35+
run: npm ci
3836
- name: Run linter
3937
if: ${{ matrix.lint }}
4038
run: make lint
4139
- name: Create test config
4240
run: cp config/test.sample.json config/test.json
4341
- name: Start test app
4442
run: NODE_ENV=test node index.js &
45-
- name: Wait / Sleep
46-
uses: jakejarvis/wait-action@v0.1.0
47-
with:
48-
time: '10s'
43+
- run: sleep 10s
4944
- name: Run tests
5045
run: make test

0 commit comments

Comments
 (0)