-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'version-4' into feature/update-and-set-for-stores
- Loading branch information
Showing
1,884 changed files
with
41,640 additions
and
34,899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,77 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
jobs: | ||
Tests: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
node-version: [8, 10, 12, 14] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
include: | ||
- node-version: 14 | ||
os: ubuntu-latest | ||
- node-version: 14 | ||
os: windows-latest | ||
- node-version: 14 | ||
os: macOS-latest | ||
- node-version: 16 | ||
os: ubuntu-latest | ||
- node-version: 18 | ||
os: ubuntu-latest | ||
- node-version: 20 | ||
os: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2.2.4 | ||
with: | ||
version: ${{ matrix.node-version == 14 && 7 || 8 }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
- run: npm install | ||
- run: npm test | ||
cache: pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: node node_modules/puppeteer/install.js | ||
- run: pnpm test:integration | ||
env: | ||
CI: true | ||
Lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2.2.4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: npm | ||
- run: 'npm i && npm run lint' | ||
cache: pnpm | ||
- run: 'pnpm i && pnpm lint' | ||
Unit: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
include: | ||
- node-version: 14 | ||
os: ubuntu-latest | ||
- node-version: 14 | ||
os: windows-latest | ||
- node-version: 14 | ||
os: macOS-latest | ||
- node-version: 16 | ||
os: ubuntu-latest | ||
- node-version: 18 | ||
os: ubuntu-latest | ||
- node-version: 20 | ||
os: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2.2.4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: npm | ||
- run: 'npm i && npm run test:unit' | ||
node-version: ${{ matrix.node-version }} | ||
cache: pnpm | ||
- run: pnpm install | ||
- run: pnpm test:unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
spec: [ | ||
'src/**/__test__.ts', | ||
], | ||
require: [ | ||
'sucrase/register' | ||
], | ||
recursive: true, | ||
}; | ||
|
||
// add coverage options when running 'npx c8 mocha' | ||
if (process.env.NODE_V8_COVERAGE) { | ||
module.exports.fullTrace = true; | ||
module.exports.require.push('source-map-support/register'); | ||
} |
Oops, something went wrong.