-
Notifications
You must be signed in to change notification settings - Fork 24
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 #130 from ConsenSys/use-gh-actions
Move to GitHub Actions instead of Drone.io
- Loading branch information
Showing
6 changed files
with
62 additions
and
386 deletions.
There are no files selected for viewing
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,59 @@ | ||
name: NodeJS CI | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
# See https://nodejs.org/en/about/releases/ | ||
node-version: [16.x] | ||
|
||
env: | ||
SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use NodeJS ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
|
||
# See https://github.com/ethereum/solc-bin | ||
# See https://binaries.soliditylang.org/ | ||
- name: Pre-download compilers from historical builds archive | ||
run: | | ||
./docker/download.sh 'linux-amd64' $SOL_AST_COMPILER_CACHE | ||
./docker/download.sh 'wasm' $SOL_AST_COMPILER_CACHE | ||
- name: Remove list and one rarely used compiler to still test downloading on-demand | ||
run: | | ||
rm -v $SOL_AST_COMPILER_CACHE/linux-amd64/list.json | ||
rm -v $SOL_AST_COMPILER_CACHE/linux-amd64/solc-linux-amd64-v0.5.17+commit.d19bba13 | ||
rm -v $SOL_AST_COMPILER_CACHE/wasm/list.json | ||
rm -v $SOL_AST_COMPILER_CACHE/wasm/soljson-v0.5.17+commit.d19bba13.js | ||
- name: Install, lint, test and generate coverage report | ||
run: | | ||
npm install | ||
npm link | ||
sol-ast-compile --version | ||
sol-ast-compile --locate-compiler-cache | ||
npm run lint | ||
npm test | ||
npm run coverage | ||
- name: Upload coverage to CodeCov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: codecov-umbrella | ||
directory: ./coverage/ | ||
fail_ci_if_error: true | ||
verbose: 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
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.