chore(deps): update dependency eslint-plugin-react to v7.36.1 #1297
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 | |
env: | |
CI: true | |
NODE_VERSION: 12.x | |
on: | |
- push | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- run: echo "${{ github.event.head_commit.message }}" | |
test: | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ env.NODE_VERSION }}" | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Install node modules | |
run: npm ci | |
- name: Run tests | |
run: npm t |