Skip to content

Commit

Permalink
Merge pull request #210 from jihchi/fix_cannot_find_chrome_issue
Browse files Browse the repository at this point in the history
Changes the download location for puppeteer
  • Loading branch information
jihchi authored Jun 24, 2023
2 parents af620da + 9de69b1 commit 34a0c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push]

env:
PUPPETEER_DOWNLOAD_PATH: ${{ github.workspace }}/.cache/Puppeteer

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -11,13 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run test
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"author": "jihchi",
"main": "src/index.js",
"scripts": {
"docker:bash": "docker run --rm --init --cap-add=SYS_ADMIN -p 3000:3000 -e DEBUG='app:*,-app:pptr' --interactive --entrypoint='' jihchi/mermaid.ink:$npm_package_version bash",
"docker:build": "docker build . -t jihchi/mermaid.ink:$npm_package_version",
"docker:publish": "docker push jihchi/mermaid.ink:$npm_package_version",
"docker:run": "docker run --rm --init --cap-add=SYS_ADMIN -p 3000:3000 -e DEBUG='app:*,-app:pptr' jihchi/mermaid.ink:$npm_package_version",
"docker:bash": "docker run --rm --init --cap-add=SYS_ADMIN -p 3000:3000 -e DEBUG='app:*,-app:pptr' --interactive --entrypoint='' jihchi/mermaid.ink:$npm_package_version bash",
"format": "prettier --with-node-modules --write \"{src,test}/**/*.{mjs,js,html}\" \"jest.*.js\" ",
"format": "prettier --with-node-modules --write \"{src,test}/**/*.{mjs,js,html}\" \"*.{js,cjs,mjs}\"",
"start": "node src/index.js",
"test": "jest",
"test:watch": "pnpm test --watch"
Expand Down Expand Up @@ -46,6 +46,7 @@
"prettier": "^2.8.8",
"supertest": "^6.3.3"
},
"packageManager": "[email protected]",
"engines": {
"node": ">= 18",
"pnpm": ">= 8"
Expand Down

0 comments on commit 34a0c42

Please sign in to comment.