Skip to content

[Jest]: Added initial code for jest-mochawesome-reporter #257

[Jest]: Added initial code for jest-mochawesome-reporter

[Jest]: Added initial code for jest-mochawesome-reporter #257

Workflow file for this run

name: LintTest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lintTest:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js from .nvmrc
if: ${{ hashFiles('**/.nvmrc') }}
run: |
NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
nvm install
nvm use
shell: bash
- name: Set up Node.js with matrix version
if: ${{ !hashFiles('**/.nvmrc') }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm ci --prefix mate-scripts
- run: npm run lint
- run: npm test