2021-04-23 19:52:32 +00:00
|
|
|
name: test-compat
|
2021-03-18 14:26:41 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2021-04-23 19:52:32 +00:00
|
|
|
test-compat:
|
2021-03-18 14:26:41 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
2021-03-18 14:28:25 +00:00
|
|
|
- uses: actions/setup-node@v2
|
2021-03-18 14:26:41 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
id: yarn-cache
|
|
|
|
with:
|
2021-04-23 19:52:32 +00:00
|
|
|
path: |
|
|
|
|
.yarn
|
|
|
|
test/fixtures/compat/.yarn
|
|
|
|
key: ${{ runner.os }}-yarn-compat-${{ hashFiles('**/yarn.lock') }}
|
2021-03-18 14:26:41 +00:00
|
|
|
restore-keys: |
|
2021-04-23 19:52:32 +00:00
|
|
|
${{ runner.os }}-yarn-compat-
|
2021-03-18 14:26:41 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
2021-04-23 19:52:32 +00:00
|
|
|
run: yarn --immutable && cd test/fixtures/compat && yarn --immutable
|
2021-03-18 14:26:41 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
|
|
|
|
2021-04-23 19:52:32 +00:00
|
|
|
- name: Test
|
2021-07-15 09:38:06 +00:00
|
|
|
run: TEST_COMPAT=1 yarn test:presets
|