Skip to content

Commit

Permalink
Merge pull request #130 from ConsenSys/use-gh-actions
Browse files Browse the repository at this point in the history
Move to GitHub Actions instead of Drone.io
  • Loading branch information
cd1m0 authored Jul 14, 2022
2 parents 1cfac32 + 0260757 commit 567729c
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 386 deletions.
32 changes: 0 additions & 32 deletions .drone.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/node.js.yaml
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
2 changes: 1 addition & 1 deletion .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"src/types/typeStrings/typeString_parser*.ts",
"src/compile/inference/file_level_definitions_parser*.ts"
],
"reporter": ["html", "text-summary"],
"reporter": ["lcov", "text-summary"],
"all": true,
"check-coverage": true,
"statements": 90,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://drone.infra.mythx.io/api/badges/ConsenSys/solc-typed-ast/status.svg)](https://drone.infra.mythx.io/ConsenSys/solc-typed-ast)
[![NodeJS CI](https://github.com/ConsenSys/solc-typed-ast/actions/workflows/node.js.yaml/badge.svg)](https://github.com/ConsenSys/solc-typed-ast/actions/workflows/node.js.yaml)
[![Coverage](https://codecov.io/gh/ConsenSys/solc-typed-ast/branch/master/graph/badge.svg?token=QDmbaGWza0)](https://codecov.io/gh/ConsenSys/solc-typed-ast)
[![Documentation](https://github.com/ConsenSys/solc-typed-ast/workflows/Build%20and%20release%20docs/badge.svg)](https://consensys.github.io/solc-typed-ast/)
[![npm](https://img.shields.io/npm/v/solc-typed-ast)](https://www.npmjs.com/package/solc-typed-ast)
Expand Down
Loading

0 comments on commit 567729c

Please sign in to comment.