mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
25 lines
502 B
YAML
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
|