-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ui/header-component
- Loading branch information
Showing
3 changed files
with
123 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 | ||
|
||
# We're excluding tests that are currently failing and need adjustments. | ||
- name: Run tests | ||
run: | | ||
yarn test \ | ||
--testPathIgnorePatterns=mas.test.ts useSendTransaction.test.ts \ | ||
staking.test.ts tbtc.test.ts getStakingAppLabel.test.ts \ | ||
useFetchTvl.test.tsx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Code Format Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
code-format: | ||
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: Check formatting | ||
run: yarn format |
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