Skip to content

feat: support svm withdrawals #56

feat: support svm withdrawals

feat: support svm withdrawals #56

Workflow file for this run

name: Test
on:
pull_request:
branches:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
timeout-minutes: 0.5
continue-on-error: true
- name: Verify Yarn cache
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: mkdir -p ~/.cache/yarn
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
timeout-minutes: 0.5
continue-on-error: true
- name: Verify Docker cache
if: steps.docker-cache.outputs.cache-hit != 'true'
run: mkdir -p /tmp/.buildx-cache
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Pull Docker images
run: docker compose pull -q
- name: Start Docker Compose
run: docker compose up -d --wait
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
- name: Run tests
env:
POSTGRES_URL: "postgres://postgres:password@127.0.0.1:5432/postgres?schema=public"
run: yarn test