2020-04-13 10:15:18 -04:00
|
|
|
name: Pull Requests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@01aecccf739ca6ff86c0539fbc67a7a5007bbc81
|
|
|
|
- uses: actions/setup-node@83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
|
|
|
|
- uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
2020-04-13 11:59:20 -04:00
|
|
|
# if: steps.cache.outputs.cache-hit != 'true'
|
2020-04-13 10:15:18 -04:00
|
|
|
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
|
|
|
|
- run: npm run test
|
2020-04-13 11:52:26 -04:00
|
|
|
env:
|
2020-04-13 10:15:18 -04:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|