mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
6318438415
Co-authored-by: Daniel Roe <daniel@roe.dev>
47 lines
960 B
YAML
47 lines
960 B
YAML
name: test-compat
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test-compat:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
node: [14]
|
|
|
|
steps:
|
|
- uses: actions/setup-node@v2
|
|
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') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-compat-
|
|
|
|
- name: Install dependencies
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: yarn --immutable && cd test/fixtures/compat && yarn --immutable
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
- name: Test
|
|
run: TEST_COMPAT=1 yarn test:presets
|