mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
#1261 Tmp reversal of build.yml to get make release possible
This commit is contained in:
50
.github/workflows/build.yml
vendored
50
.github/workflows/build.yml
vendored
@@ -8,7 +8,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [10.x, 12.x]
|
node-version: [10.x, 12.x]
|
||||||
browser: [chrome, firefox]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
@@ -20,10 +19,18 @@ jobs:
|
|||||||
- name: Install Yarn
|
- name: Install Yarn
|
||||||
run: npm i yarn --global
|
run: npm i yarn --global
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Cache Node Modules
|
||||||
uses: cypress-io/github-action@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
runTests: false
|
path: .cache
|
||||||
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
|
- name: Install Packages
|
||||||
|
run: |
|
||||||
|
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
|
||||||
|
yarn install --frozen-lockfile
|
||||||
|
env:
|
||||||
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
||||||
|
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
@@ -44,37 +51,14 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel: true
|
parallel: true
|
||||||
|
|
||||||
- uses: cypress-io/github-action@v1
|
# - name: Run E2E Tests
|
||||||
with:
|
# run: yarn e2e
|
||||||
browser: ${{ matrix.browser }}
|
# env:
|
||||||
group: ${{ matrix.browser }}
|
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
||||||
headless: true
|
# CYPRESS_CACHE_FOLDER: .cache/Cypress
|
||||||
command-prefix: 'percy exec -- npx'
|
|
||||||
start: yarn dev
|
|
||||||
wait-on: 'http://localhost:9000'
|
|
||||||
install: false
|
|
||||||
working-directory: cypress
|
|
||||||
parallel: true
|
|
||||||
parallelism: 4
|
|
||||||
env:
|
|
||||||
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Upload cypress screenshots
|
|
||||||
uses: actions/upload-artifact@master
|
|
||||||
with:
|
|
||||||
name: cypress-screenshots
|
|
||||||
path: cypress/screenshots
|
|
||||||
if: failure()
|
|
||||||
|
|
||||||
- name: Upload cypress videos
|
|
||||||
uses: actions/upload-artifact@master
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: cypress-videos
|
|
||||||
path: cypress/videos
|
|
||||||
|
|
||||||
- name: Post Upload Test Results
|
- name: Post Upload Test Results
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
Reference in New Issue
Block a user