Skip to content

Commit

Permalink
📦 NEW: Support cypress mirror env (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Nov 6, 2022
1 parent 4e9bdf7 commit 68f59d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -41,6 +41,6 @@ jobs:
run: npm run ci

- name: Code Coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions lib/mirror_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ exports.MirrorConfig = class MirrorConfig {

// replace cypress download url
// https://github.com/cypress-io/cypress/blob/master/cli/lib/tasks/download.js#L30
// support cypress <= 9, cypress >= 10 using CYPRESS_DOWNLOAD_PATH_TEMPLATE env
if (pkgName === 'cypress') {
const defaultPlatforms = {
darwin: 'osx64',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"PHANTOMJS_CDNURL": "https://cdn.npmmirror.com/binaries/phantomjs",
"CHROMEDRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/chromedriver",
"OPERADRIVER_CDNURL": "https://cdn.npmmirror.com/binaries/operadriver",
"CYPRESS_DOWNLOAD_PATH_TEMPLATE": "https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip",
"ELECTRON_MIRROR": "https://cdn.npmmirror.com/binaries/electron/",
"ELECTRON_BUILDER_BINARIES_MIRROR": "https://cdn.npmmirror.com/binaries/electron-builder-binaries/",
"SASS_BINARY_SITE": "https://cdn.npmmirror.com/binaries/node-sass",
Expand Down

0 comments on commit 68f59d3

Please sign in to comment.