-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade CI provider from Travis to GH Actions
- Loading branch information
Showing
16 changed files
with
121 additions
and
97 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,80 @@ | ||
name: "Build" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
TEST: "build_and_lint" | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v1 | ||
- run: bash ./scripts/install.sh | ||
- run: bash ./scripts/ci.sh | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [8, 10, 11, 12, 13] | ||
env: | ||
TEST: "unit" | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@v1 | ||
- run: bash ./scripts/install.sh | ||
- run: bash ./scripts/ci.sh | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
testCmd: | ||
[ | ||
"unit_and_e2e_clients", | ||
"e2e_ganache", | ||
"e2e_mosaic", | ||
"e2e_ens", | ||
"e2e_browsers", | ||
] | ||
env: | ||
TEST: ${{ matrix.testCmd }} | ||
CI: true | ||
DISPLAY: :99.0 | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v1 | ||
|
||
- run: bash ./scripts/install.sh | ||
- run: bash ./scripts/ci.sh | ||
continue-on-error: ${{ matrix.testCmd == 'e2e_ganache' || matrix.testCmd == 'e2e_mosiac' }} | ||
|
||
- name: Send coverage reports to Coveralls | ||
if: env.TEST == 'unit_and_e2e_clients' | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
e2e-test-windows: | ||
runs-on: windows-latest | ||
env: | ||
TEST: "e2e_windows" | ||
CI: true | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v1 | ||
- run: bash ./scripts/install.sh | ||
- run: bash ./scripts/ci.sh | ||
continue-on-error: true |
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 |
---|---|---|
|
@@ -6,6 +6,5 @@ coverage | |
scripts | ||
.gitignore | ||
.editorconfig | ||
.travis.yml | ||
.npmignore | ||
.DS_Store |
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
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
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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ fi | |
# To model publication correctly, this script needs to run | ||
# without web3's dev deps being installed. It installs | ||
# what it needs here. | ||
npm install -g [email protected].2 | ||
npm install -g [email protected].4 | ||
npm install -g [email protected] | ||
npm install -g [email protected] | ||
|
||
|
@@ -46,11 +46,10 @@ npm-auth-to-token \ | |
-r http://localhost:4873 | ||
|
||
# Prep branch for Lerna's git-checks | ||
BRANCH=$TRAVIS_PULL_REQUEST_BRANCH | ||
if [ -z "$BRANCH" ]; then | ||
|
||
BRANCH=$TRAVIS_BRANCH | ||
|
||
if [[ $GITHUB_REF = 'refs/pull/'* ]]; then | ||
BRANCH=${GITHUB_HEAD_REF#refs/pull/} | ||
else | ||
BRANCH=${GITHUB_REF#refs/heads/} | ||
fi | ||
|
||
git checkout $BRANCH -- | ||
|
@@ -63,8 +62,9 @@ lerna version minor \ | |
--allow-branch $BRANCH \ | ||
--yes | ||
|
||
# Set email prior to publishing (necessary for Windows) | ||
# Set identity prior to publishing (necessary for Windows) | ||
git config user.email "[email protected]" | ||
git config user.name "Your Name" | ||
|
||
# Commit changes because lerna checks git before | ||
git commit -a -m 'virtual-version-bump' | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# -------------------------------------------------------------------------------- | ||
# NB: This script temporarily removed from CI while truffle remains on [email protected]. | ||
# To re-enable, add a `env: TEST=e2e_truffle` job to the matrix in travis.yml. | ||
# To re-enable, add a `e2e_truffle` job to the matrix in `.github/workflows/test.yml`. | ||
# -------------------------------------------------------------------------------- | ||
|
||
# ------------------------------------------------------------------------- | ||
|
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