awesome-docker/.github/workflows/pull_request.yml

33 lines
888 B
Markdown
Raw Normal View History

name: Pull Requests / Weekly QA
2020-04-13 10:15:18 -04:00
on:
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 6'
2020-04-13 10:15:18 -04:00
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
2020-04-13 10:15:18 -04:00
with:
node-version: lts/*
2020-04-13 10:15:18 -04:00
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
2020-04-13 10:15:18 -04: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 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
2020-11-09 13:30:28 -05:00
- run: npm run test-pr
2020-04-13 11:52:26 -04:00
env:
2020-04-13 10:15:18 -04:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}