fix(sfc): check template ref
usage, fix #12984
#571
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'ci' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Run unit tests | |
run: pnpm run test:unit | |
ssr-sfc-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Run SSR tests | |
run: pnpm run test:ssr | |
- name: Run compiler-sfc tests | |
run: pnpm run test:sfc | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Run e2e tests | |
run: pnpm run test:e2e | |
- name: Run transition tests | |
run: pnpm run test:transition | |
type-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Run srouce type check | |
run: pnpm run ts-check | |
- name: Run type declaration tests | |
run: pnpm run test:types |