feat:Implemented the escrow status system #283
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: PR | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
- '.gitignore' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr: | |
name: Indexer PR | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: apps/indexer | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Verify Bun installation | |
run: bun --version | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
~/.bun/install/cache | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install Dependencies | |
run: | | |
bun install | |
# Verify installation was successful | |
test -f bun.lockb | |
# Untrusted packages can be installed, causing false errors. Continuing on error. | |
# ? If something actually went wrong, the build will fail below. | |
continue-on-error: true | |
- name: Codegen | |
run: bun codegen | |
timeout-minutes: 5 | |
- name: Build | |
run: bun run build | |
timeout-minutes: 10 | |
- name: Install test dependencies | |
run: bun add --dev @subql/node-stellar | |
- name: Run tests with Subquery Node | |
run: bunx subql-node-stellar test -f ${{ github.workspace }} | |
timeout-minutes: 15 |