mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-10 17:49:40 +02:00
Merge pull request #1260 from mermaid-js/chris579-patch-1
Build action fix
This commit is contained in:
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
@@ -8,6 +8,7 @@ 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
|
||||||
|
|
||||||
@@ -19,18 +20,10 @@ jobs:
|
|||||||
- name: Install Yarn
|
- name: Install Yarn
|
||||||
run: npm i yarn --global
|
run: npm i yarn --global
|
||||||
|
|
||||||
- name: Cache Node Modules
|
- name: Install Dependencies
|
||||||
uses: actions/cache@v1
|
uses: cypress-io/github-action@v1
|
||||||
with:
|
with:
|
||||||
path: .cache
|
runTests: false
|
||||||
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
|
||||||
@@ -51,12 +44,35 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel: true
|
parallel: true
|
||||||
|
|
||||||
# - name: Run E2E Tests
|
- uses: cypress-io/github-action@v1
|
||||||
# run: yarn e2e
|
with:
|
||||||
# env:
|
browser: ${{ matrix.browser }}
|
||||||
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
group: ${{ matrix.browser }}
|
||||||
# CYPRESS_CACHE_FOLDER: .cache/Cypress
|
headless: true
|
||||||
|
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:
|
||||||
|
@@ -69,7 +69,7 @@
|
|||||||
"coveralls": "^3.0.2",
|
"coveralls": "^3.0.2",
|
||||||
"css-loader": "^2.0.1",
|
"css-loader": "^2.0.1",
|
||||||
"css-to-string-loader": "^0.1.3",
|
"css-to-string-loader": "^0.1.3",
|
||||||
"cypress": "3.4.0",
|
"cypress": "4.0.1",
|
||||||
"documentation": "^12.0.1",
|
"documentation": "^12.0.1",
|
||||||
"eslint": "^6.3.0",
|
"eslint": "^6.3.0",
|
||||||
"eslint-config-prettier": "^6.3.0",
|
"eslint-config-prettier": "^6.3.0",
|
||||||
|
Reference in New Issue
Block a user