build: bump all dependencies and fix tests #312
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
paths: | |
- '**' | |
env: | |
NPM_CACHE_NAME: "npm-cache" | |
NPM_CACHE_PATH: "~/.npm" | |
jobs: | |
Test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 1 | |
- name: Cache node modules | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Npm install | |
run: | | |
printf "%70s\n" | tr ' ' '-' | |
npm ci | |
printf "%70s\n" | tr ' ' '-' | |
- name: Mocha tests, coverage and lint | |
env: | |
BMYC_GITHUB_TOKEN: ${{ secrets.BMYC_GITHUB_TOKEN }} | |
run: | | |
printf "%70s\n" | tr ' ' '-' | |
npm run test | |
printf "%70s\n" | tr ' ' '-' |