From e356c38c8ae5ab9c6c509a558979690b87bd5604 Mon Sep 17 00:00:00 2001 From: Drygin Date: Tue, 22 Feb 2022 20:21:22 +0300 Subject: [PATCH] add ci --- .github/workflows/build.js.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.js.yml b/.github/workflows/build.js.yml index 7440c01..af872c1 100644 --- a/.github/workflows/build.js.yml +++ b/.github/workflows/build.js.yml @@ -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 }}