element-plus/.github/workflows/unit-test.yml
2021-08-28 19:54:19 +08:00

25 lines
502 B
YAML

name: Unit Test
on: pull_request
jobs:
build:
name: Unit Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14', '16']
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn bootstrap
- name: Lint
run: yarn lint
- name: Test
run: yarn test