mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
35 lines
649 B
YAML
35 lines
649 B
YAML
|
name: Unit Tests
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
permissions:
|
||
|
contents: read
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
node-version: [16.x]
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- name: Setup Node.js ${{ matrix.node-version }}
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
cache: yarn
|
||
|
node-version: ${{ matrix.node-version }}
|
||
|
|
||
|
- name: Install Yarn
|
||
|
run: npm i yarn --global
|
||
|
|
||
|
- name: Install Packages
|
||
|
run: |
|
||
|
yarn install --frozen-lockfile
|
||
|
env:
|
||
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
||
|
|
||
|
- name: Run Unit Tests
|
||
|
run: |
|
||
|
yarn ci --coverage
|