[Jest]: Added initial code for jest-mochawesome-reporter #256
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: 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 or use the matrix version | |
run: | | |
NVM_DIR="$HOME/.nvm" | |
source "$NVM_DIR/nvm.sh" | |
if [ -f .nvmrc ]; then | |
nvm install | |
nvm use | |
else | |
nvm install ${{ matrix.node-version }} | |
nvm use ${{ matrix.node-version }} | |
fi | |
shell: bash | |
- 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 |