Skip to content

Function closures for CCIP token pool hooks #1578

Function closures for CCIP token pool hooks

Function closures for CCIP token pool hooks #1578

Workflow file for this run

name: Aptos - Relayer
on:
push:
branches:
- develop
- main
pull_request:
jobs:
test:
name: Integration Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: testdb_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
TEST_DB_URL: postgres://user:pass@localhost:5432/testdb_test
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Extract Go version
uses: ./.github/actions/check-go-version
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.go_version }}
- name: Install Aptos CLI
uses: aptos-labs/actions/install-aptos-cli@ce57287eb852b9819c1d74fecc3be187677559fd # v0.1
with:
CLI_VERSION: 7.14.0
- name: Wait for PostgreSQL
run: |
until pg_isready -h localhost -p 5432 -U user; do
echo "Waiting for PostgreSQL..."
sleep 2
done
- name: Run tests
run: cd relayer && go test -count=1 -p=1 -tags=integration ./...
check-tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Set up Go
uses: actions/setup-go@v5
with:
cache-dependency-path: go.sum
go-version-file: go.mod
- name: Ensure modules are tidy
run: |
go run github.com/jmank88/gomods@v0.1.6 tidy
git add --all
git diff --minimal --cached --exit-code
- name: Ensure mockery has been run
run: |
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm
find . -type f -name .mockery.yaml -execdir go run github.com/vektra/mockery/v2@v2.53.0 \;
git add --all
git diff --stat --cached --exit-code