This repository has been archived by the owner on Jan 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
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 #87 from ethereumjs/useGHActions
Upgrade CI provider to use GH Actions in place of Travis
- Loading branch information
Showing
6 changed files
with
90 additions
and
45 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,42 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 13.x, 14.x] | ||
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 test | ||
|
||
coverage: | ||
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 coverage | ||
|
||
- name: Upload coverage to Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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,23 @@ | ||
module.exports = function(config) { | ||
config.set({ | ||
frameworks: ['mocha', 'karma-typescript'], | ||
files: ['src/**/*.ts', 'test/**/!(integration)*.ts'], | ||
preprocessors: { | ||
'**/*.ts': ['karma-typescript'], | ||
}, | ||
plugins: ['karma-mocha', 'karma-typescript', 'karma-chrome-launcher', 'karma-firefox-launcher'], | ||
karmaTypescriptConfig: { | ||
bundlerOptions: { | ||
entrypoints: /\.spec\.ts$/, | ||
}, | ||
}, | ||
colors: true, | ||
reporters: ['progress', 'karma-typescript'], | ||
browsers: ['FirefoxHeadless', 'ChromeHeadless'], | ||
singleRun: true, | ||
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
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