-
Notifications
You must be signed in to change notification settings - Fork 47
42 lines (34 loc) · 1.15 KB
/
compat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow runs a smoke test against the latest versions of webpack and
# html-webpack-plugin, daily and on request
name: Compatibility
on:
schedule:
- cron: "0 19 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Set environmental variables"
run: |
echo "PUPPETEER_DOWNLOAD_PATH=$HOME/puppeteer" >> $GITHUB_ENV
- run: sudo apt-get install -y moreutils
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v2
id: puppeteer-cache
with:
path: ${{ env.PUPPETEER_DOWNLOAD_PATH }}
key: ${{ runner.os }}-puppeteer-${{ hashFiles('**/yarn.lock') }}
- run: yarn
- run: yarn test:smoke