11b5d175f4
* Update dependencies which pass tests locally * Break the yarn cache in an attempt to fix checks * playground: Add wrapping error info for build.ts * playground: Don't use dev mode in CI tests * playground: Use tsc for typecheck * playground: Specify working esbuild version 0.13.15 * playground: Use only promises in build.ts * playground: Ensure serving in ci e2e * Add echo for vercel for build:static
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
name: Compatibility tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
Compatibility-Tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- 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 # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
with:
|
|
# Note that we assume the following things about the compatibility tests here:
|
|
# 1. Every directory in `build_test` is a project managed with yarn
|
|
# 2. All these projects store their cache in `<project>/.yarn/cache`
|
|
# It's not that robust, but should be sufficient for us for now.
|
|
path: |
|
|
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
${{ github.workspace }}/compatibility-tests/*/.yarn/cache
|
|
key:
|
|
${{ runner.os }}-${{ matrix.node-version }}-yarn-${{
|
|
hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ matrix.node-version }}-yarn-
|
|
|
|
- run: yarn install
|
|
- run: yarn test:compatibility:ci
|