2020-04-13 16:15:18 +02:00
|
|
|
name: Pull Requests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-11-18 14:13:00 +01:00
|
|
|
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
|
|
|
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
|
2020-04-13 16:15:18 +02:00
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
|
2020-11-18 14:13:00 +01:00
|
|
|
- uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
|
2020-04-13 16:15:18 +02:00
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
2020-04-13 17:59:20 +02:00
|
|
|
# if: steps.cache.outputs.cache-hit != 'true'
|
2020-04-13 16:15:18 +02:00
|
|
|
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
|
2020-11-09 19:30:28 +01:00
|
|
|
- run: npm run test-pr
|
2020-04-13 17:52:26 +02:00
|
|
|
env:
|
2020-04-13 16:15:18 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|