mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
691 B
37 lines
691 B
name: Test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [14, 16]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2.0.1
|
|
with:
|
|
version: 7.0.1
|
|
|
|
- name: Set node version to ${{ matrix.node_version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Install deps
|
|
run: pnpm install
|
|
|
|
- name: Lint
|
|
run: pnpm run lint-fail
|
|
|
|
- name: Test
|
|
run: pnpm run test-run
|
|
|
|
- name: Build
|
|
run: pnpm run build
|