This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from ethereumjs/use-gh-actions
Upgrade CI Provider to GH Actions
- Loading branch information
Showing
5 changed files
with
91 additions
and
33 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,35 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10, 12, 13] | ||
steps: | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- uses: actions/checkout@v1 | ||
- run: npm install | ||
- run: npm run coverage | ||
- uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
test-browser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/checkout@v1 | ||
- run: npm install | ||
- run: npm run test:browser |
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
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,44 @@ | ||
module.exports = function (config) { | ||
config.set({ | ||
frameworks: ['browserify', 'tap'], | ||
|
||
files: ['dist/bundle.js', './test/**/*.js'], | ||
|
||
// Exclude [test/node.js, test/net, test/sync, test/service] due to error: `Sorry, but CommonJS module replacement with td.replace() is only supported under Node.js runtimes.` | ||
// Exclude [test/rpc] due to error: `TypeError: superCtor is undefined` | ||
// Exclude [test/util/parse] due to hanging on `should parse geth params file` | ||
// Exclude [test/logging] due to error: `TypeError: logger.format is undefined` | ||
exclude: [ | ||
'./test/node.js', | ||
'./test/net/**/*.js', | ||
'./test/sync/**/*.js', | ||
'./test/service/**/*.js', | ||
'./test/rpc/**/*.js', | ||
'./test/util/parse.js', | ||
'./test/logging.js', | ||
'./test/integration/**/*.js' | ||
], | ||
|
||
preprocessors: { | ||
'./test/**/*.js': ['browserify'] | ||
}, | ||
|
||
reporters: ['progress'], | ||
|
||
browsers: ['FirefoxHeadless', 'ChromeHeadless'], | ||
|
||
colors: true, | ||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true, | ||
|
||
// Concurrency level | ||
// how many browser should be started simultaneous | ||
concurrency: Infinity, | ||
|
||
// Fail after timeout | ||
browserDisconnectTimeout: 100000, | ||
browserNoActivityTimeout: 100000 | ||
}) | ||
} |
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