mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 11:14:12 +01:00
adj
This commit is contained in:
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -22,13 +22,19 @@ jobs:
|
|||||||
- name: Cache Node Modules
|
- name: Cache Node Modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: .cache
|
path: ~/.cache/yarn
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
|
- name: Cache Cypress
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cache/Cypress
|
||||||
|
key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }}
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: |
|
run: |
|
||||||
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
|
yarn config set cache-folder ~/.cache/yarn
|
||||||
export CYPRESS_CACHE_FOLDER=$GITHUB_WORKSPACE/.cache/Cypress
|
export CYPRESS_CACHE_FOLDER=~/.cache/Cypress
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
npx cypress cache path
|
npx cypress cache path
|
||||||
npx cypress cache list
|
npx cypress cache list
|
||||||
@@ -55,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run E2E Tests
|
- name: Run E2E Tests
|
||||||
run: |
|
run: |
|
||||||
export CYPRESS_CACHE_FOLDER=$GITHUB_WORKSPACE/.cache/Cypress
|
export CYPRESS_CACHE_FOLDER=~/.cache/Cypress
|
||||||
npx cypress cache path
|
npx cypress cache path
|
||||||
npx cypress cache list
|
npx cypress cache list
|
||||||
npx cypress install
|
npx cypress install
|
||||||
@@ -68,3 +74,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|
||||||
|
- name: Upload cypress screenshots
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: screenshots
|
||||||
|
path: cypress/screenshots
|
||||||
|
if: failure()
|
||||||
|
|
||||||
|
- name: Upload cypress videos
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: videos
|
||||||
|
path: cypress/videos
|
||||||
|
|||||||
Reference in New Issue
Block a user