59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: ci
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
steps:
|
|
- name: bootstrap-deps
|
|
image: registry.sovraigns.network/harb/node-ci:ci-20251013
|
|
commands:
|
|
- |
|
|
bash -lc '
|
|
set -euo pipefail
|
|
git submodule update --init --recursive
|
|
yarn --cwd onchain/lib/uni-v3-lib install --frozen-lockfile
|
|
'
|
|
|
|
- name: foundry-suite
|
|
image: registry.sovraigns.network/harb/node-ci:ci-20251013
|
|
commands:
|
|
- |
|
|
bash -lc '
|
|
set -euo pipefail
|
|
cd onchain
|
|
forge --version
|
|
forge build
|
|
forge test -vvv
|
|
forge snapshot
|
|
'
|
|
|
|
- name: node-quality
|
|
image: registry.sovraigns.network/harb/node-ci:ci-20251013
|
|
environment:
|
|
CI: "true"
|
|
commands:
|
|
- |
|
|
bash -lc '
|
|
set -euo pipefail
|
|
npm config set fund false
|
|
npm config set audit false
|
|
./scripts/build-kraiken-lib.sh
|
|
npm ci --prefix landing --no-audit --no-fund
|
|
npm run lint --prefix landing
|
|
npm run build --prefix landing
|
|
npm ci --prefix web-app --no-audit --no-fund
|
|
npm run lint --prefix web-app
|
|
npm run test --prefix web-app -- --run
|
|
npm run build --prefix web-app
|
|
npm ci --prefix services/ponder --no-audit --no-fund
|
|
npm run lint --prefix services/ponder
|
|
npm run build --prefix services/ponder
|
|
npm ci --prefix services/txnBot --no-audit --no-fund
|
|
npm run lint --prefix services/txnBot
|
|
npm run test --prefix services/txnBot -- --runInBand
|
|
npm run build --prefix services/txnBot
|
|
'
|