Skip to content

feat(bson-bench): add bson-bench library #3

feat(bson-bench): add bson-bench library

feat(bson-bench): add bson-bench library #3

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: bson-bench CI
on:
push:
paths: bson-bench/**
branches: [ "main" ]
pull_request:
paths: bson-bench/**
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
working-directory: ./bson-bench
uses: actions/setup-node@v3

Check failure on line 28 in .github/workflows/bson-bench.yml

View workflow run for this annotation

GitHub Actions / bson-bench CI

Invalid workflow file

The workflow is not valid. .github/workflows/bson-bench.yml (Line: 28, Col: 7): Unexpected value 'uses' .github/workflows/bson-bench.yml (Line: 29, Col: 7): Unexpected value 'with'
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: npm clean install
working-directory: ./bson-bench
run: npm clean-install
- name: Run tests
working-directory: ./bson-bench
run: npm run test