awesome-docker/.github/workflows/pull_request.yml
2020-04-13 17:59:20 +02:00

31 lines
834 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}