mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-25 01:15:50 +08:00
Add new Build & Test workflow
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: Build & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x, 14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: bootstrap
|
||||
run: npm run bootstrap
|
||||
- name: unit tests (mocha+chai+jsdom)
|
||||
run: npm run test
|
||||
- name: unit tests (jest+playwright)
|
||||
run: npm run test:jest-unit -- -ci
|
||||
- uses: microsoft/playwright-github-action@v1.3.0
|
||||
- name: e2e tests (jest+playwright)
|
||||
run: npm run test:jest-e2e -- -ci
|
||||
Reference in New Issue
Block a user