Initial SLR move #2404
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: 'npm jest' | |
on: | |
pull_request: | |
paths: | |
- 'src/modules/**.js' | |
- 'src/resources/js/**.js' | |
jobs: | |
jest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Set node version | |
run: | | |
. ~/.nvm/nvm.sh && nvm install $(cat .nvmrc) && nvm use | |
- name: Get npm cache | |
uses: actions/cache@v2 | |
id: npm-cache | |
with: | |
path: '~/.npm' | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-npm- | |
- name: Install node modules | |
run: | | |
. ~/.nvm/nvm.sh && nvm use && npm ci | |
- name: Run jest task | |
run: | | |
. ~/.nvm/nvm.sh && nvm use && npm run jest |