Skip to content

Commit

Permalink
ci: add btc-faucet test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Aug 18, 2022
1 parent 9bde376 commit 21276ff
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,65 @@ jobs:
flag-name: run-${{ github.job }}
parallel: true

test-btc-faucet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install deps
run: npm ci --audit=false

- name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV

- name: Setup integration environment
run: |
sudo ufw disable
npm run devenv:deploy -- -d
npm run devenv:logs -- --no-color &> docker-compose-logs.txt &
- name: Run btc faucet tests
run: npm run test:btc-faucet

- name: Print integration environment logs
run: cat docker-compose-logs.txt
if: failure()

- name: Teardown integration environment
run: npm run devenv:stop
if: always()

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: always()

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@master
if: always()
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ github.job }}
parallel: true

test-bns:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 21276ff

Please sign in to comment.