mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
94 lines
1.8 KiB
YAML
94 lines
1.8 KiB
YAML
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
|