Nuxt/.github/workflows/test-compat.yml

47 lines
960 B
YAML
Raw Normal View History

name: test-compat
2021-03-18 14:26:41 +00:00
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-compat:
2021-03-18 14:26:41 +00:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- 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:
path: |
.yarn
test/fixtures/compat/.yarn
key: ${{ runner.os }}-yarn-compat-${{ hashFiles('**/yarn.lock') }}
2021-03-18 14:26:41 +00:00
restore-keys: |
${{ runner.os }}-yarn-compat-
2021-03-18 14:26:41 +00:00
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --immutable && cd test/fixtures/compat && yarn --immutable
2021-03-18 14:26:41 +00:00
- name: Build
run: yarn build
- name: Test
run: TEST_COMPAT=1 yarn test:presets