Skip to content

Add basic CI jobs (build, test, format) #5

Add basic CI jobs (build, test, format)

Add basic CI jobs (build, test, format) #5

Workflow file for this run

name: Build the Base dashboard
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
dashboard-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
# We need this step because the `@keep-network/tbtc-v2` which we update in
# next step has an indirect dependency to `@summa-tx/[email protected]`
# package, which downloads one of its sub-dependencies via unathenticated
# `git://` protocol. That protocol is no longer supported. Thanks to this
# step `https://` is used instead of `git://`.
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://
- name: Install dependencies
run: yarn install --ignore-scripts
- name: Run post-install script
run: yarn run postinstall
- name: Build contracts
run: yarn build
# TODO: uncomment once the tests are fixed
# - name: Run tests
# run: yarn test