mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
36 lines
956 B
YAML
36 lines
956 B
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: Node.js CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, feat, docs ]
|
|
pull_request:
|
|
branches: [ main, feat, docs ]
|
|
|
|
jobs:
|
|
build:
|
|
environment: test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x]
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm run lint
|
|
- run: npm run test:cov
|
|
- uses: codecov/codecov-action@v1.5.2
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|