2023-05-18 11:54:45 -04:00
|
|
|
name: Pull Requests / Weekly QA
|
2020-04-13 10:15:18 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-05-18 11:54:45 -04:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 6'
|
2020-04-13 10:15:18 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-02 15:37:11 -04:00
|
|
|
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
|
|
|
|
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
|
2020-04-13 10:15:18 -04:00
|
|
|
with:
|
2022-11-03 15:39:18 -04:00
|
|
|
node-version: 18
|
2020-04-13 10:15:18 -04:00
|
|
|
|
2022-11-02 15:37:11 -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 }}
|