awesome-docker/.github/workflow/pull_request.yml
2020-04-13 16:15:18 +02:00

31 lines
833 B
Markdown

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
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
- run: npm run test
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}