[1693] Update /protocols/stats to use latest Mayan stats #2213
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Prettify code | |
uses: creyD/prettier_action@master | |
with: | |
dry: True | |
prettier_options: --write ./blockchain-watcher | |
prettier_version: 2.8.7 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com | |
scope: '@xlabs' | |
cache: "npm" | |
cache-dependency-path: | | |
./blockchain-watcher/package-lock.json | |
- name: npm ci | |
run: npm ci | |
working-directory: ./blockchain-watcher | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.XLABS_TOKEN }} | |
- name: typecheck | |
run: npm run build | |
working-directory: ./blockchain-watcher | |
- name: Run tests | |
run: npm run test:coverage | |
working-directory: ./blockchain-watcher |