Skip to content

Commit

Permalink
Merge 1903c4d into f3fbb6f
Browse files Browse the repository at this point in the history
  • Loading branch information
maxweng authored Mar 24, 2022
2 parents f3fbb6f + 1903c4d commit 10636f6
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/ci_push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: build and test
name: test and coverage

on: [push]

jobs:
buildAndTest:
name: Build and Test
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -13,14 +13,35 @@ jobs:
node-version: 14

- name: Install Dependencies
run: npm install
run: yarn install

- name: Test
- name: Unit Test
run: |
npm run lint
npm run test:unit
yarn lint
yarn test:unit
env:
COINMARKETCAP_API_KEY: ${{ secrets.COINMARKETCAP_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
INFURA_ID: ${{ secrets.INFURA_ID }}
MNEMONIC_TEST: ${{ secrets.MNEMONIC_TEST }}
runCoverage:
name: Run Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Dependencies
run: yarn install

- name: Run coverage
run: |
yarn coverage
yarn codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
INFURA_ID: ${{ secrets.INFURA_ID }}
MNEMONIC_TEST: ${{ secrets.MNEMONIC_TEST }}

0 comments on commit 10636f6

Please sign in to comment.