-
-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Add GitHub Action based testing (#245)
Co-authored-by: Roman Filippov <[email protected]>
- Loading branch information
Showing
27 changed files
with
280 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
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,76 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
env: | ||
CI: "true" | ||
FORCE_COLOR: "true" | ||
|
||
jobs: | ||
test: | ||
name: Node@${{ matrix.node }} pup@${{ matrix.puppeteer_version }} on ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
puppeteer_version: | ||
- 5.0.0 | ||
- 2.1.1 # Chromium 79.0.3942.0, Oct 24 2019 | ||
# - 2.0.0 # Chromium 79.0.3942.0, Oct 24 2019 | ||
# - 1.20.0 # Chromium 78.0.3882.0, Sep 13 2019 | ||
# - 1.15.0 # Chromium 75.0.3765.0, Apr 26 2019 | ||
# - 1.9.0 # Chromium 71.0.3563.0, Oct 4, 2018 | ||
# - 1.6.2 # Chromium 69.0.3494.0, Aug 1, 2018 | ||
node: | ||
- 10 | ||
- 12 | ||
- 14 | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
# - windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: 'Fix for: error [email protected]: The platform "linux" is incompatible with this module.' | ||
run: npx json -I -f package.json -e 'this.resolutions={}' | ||
|
||
- name: yarn install | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: yarn bootstrap | ||
run: yarn bootstrap | ||
|
||
- name: install puppeteer@${{ matrix.puppeteer_version }} | ||
run: yarn lerna add --dev puppeteer@${{ matrix.puppeteer_version }} | ||
|
||
- name: lerna link | ||
run: yarn lerna link | ||
|
||
- name: lerna build | ||
run: yarn lerna run build --concurrency 1 | ||
|
||
- name: debug | ||
run: | | ||
yarn list --pattern "puppeteer|puppeteer-extra" | ||
file node_modules/puppeteer-extra/dist/index.cjs.js | ||
- name: test | ||
uses: GabrielBB/[email protected] | ||
env: | ||
DISPLAY: ":99.0" | ||
with: | ||
run: yarn test-ci |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
...require('prettier-config-standard'), | ||
|
||
// override for Windows | ||
endOfLine: 'lf', | ||
} |
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,9 @@ | ||
export default { | ||
compileEnhancements: false, | ||
environmentVariables: { | ||
TS_NODE_COMPILER_OPTIONS: '{"module":"commonjs"}' | ||
}, | ||
files: ['src/**.test.ts'], | ||
extensions: ['ts'], | ||
require: ['ts-node/register'] | ||
} |
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,3 @@ | ||
export default { | ||
files: ['dist/*.test.js'] | ||
} |
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
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,9 @@ | ||
export default { | ||
compileEnhancements: false, | ||
environmentVariables: { | ||
TS_NODE_COMPILER_OPTIONS: '{"module":"commonjs"}' | ||
}, | ||
files: ['src/**.test.ts'], | ||
extensions: ['ts'], | ||
require: ['ts-node/register'] | ||
} |
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,3 @@ | ||
export default { | ||
files: ['dist/*.test.js'] | ||
} |
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
Oops, something went wrong.