mirror of
https://github.com/tornadocash/tornado-pool-factory
synced 2024-02-02 15:04:08 +01:00
add ci
This commit is contained in:
parent
160b2f4cb0
commit
e356c38c8a
29
.github/workflows/build.js.yml
vendored
29
.github/workflows/build.js.yml
vendored
@ -3,34 +3,23 @@ name: build
|
||||
on:
|
||||
push:
|
||||
branches: ['*']
|
||||
tags: ['v[0-9]+.[0-9]+.[0-9]+']
|
||||
pull_request:
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
environment: secrets
|
||||
env:
|
||||
etherscan_api_key: ${{ secrets.ETHERSCAN_API_KEY }}
|
||||
goerli_rpc_key: ${{ secrets.GOERLI_RPC_KEY }}
|
||||
mainnet_rpc_key: ${{ secrets.MAINNET_RPC_KEY }}
|
||||
goerli_account_pk: ${{ secrets.GOERLI_ACCOUNT_PK }}
|
||||
mainnet_account_pk: ${{ secrets.MAINNET_ACCOUNT_PK }}
|
||||
steps:
|
||||
- name: Tests and setup
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: yarn install
|
||||
- run: cp .env.example.workflow .env
|
||||
- run: yarn prettier:fix
|
||||
node-version: 14
|
||||
- run: yarn cache clean --all
|
||||
- run: yarn install --network-concurrency 1
|
||||
- run: yarn lint
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
|
||||
- name: Generate coverage
|
||||
run: yarn coverage
|
||||
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
env:
|
||||
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
|
||||
|
Loading…
Reference in New Issue
Block a user