feat: add support for backfilling lend storage messages #6427
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| # CI is run on main because new branches can only access caches from master, not previous branches. | |
| # So building on master allows new PR's to get the cache from before. | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # prevent multiple simultaneous test runs | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| timeout-minutes: 25 | |
| strategy: | |
| matrix: | |
| arch: ['arm64', 'x64'] | |
| node_version: [22, 24] | |
| runs-on: ['runs-on=${{ github.run_id }}', 'runner=4cpu-linux-${{ matrix.arch }}'] | |
| name: test (Node ${{ matrix.node_version }}, ${{ matrix.arch }}) | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: shuttle | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: shuttle | |
| ports: | |
| - 6541:5432 | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| redis: | |
| image: redis:7 | |
| ports: | |
| - 16379:6379 | |
| options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| # Make sure this matches what we do locally and what we build with our Docker image | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: 1.77.0 | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| - name: Restore cached dependencies for Node modules. | |
| id: module-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ github.workspace }}/node_modules | |
| key: ${{ runner.os }}-${{ runner.arch }}--node--${{ matrix.node_version}}--${{ hashFiles('yarn.lock') }} | |
| - name: Install Protocol Buffer Compiler | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: "24.4" | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Run build | |
| run: yarn build | |
| - name: Run linter | |
| run: yarn lint:ci | |
| - name: Run tests | |
| run: yarn test:ci | |
| - name: Upload coverage results | |
| uses: codecov/codecov-action@v4 | |
| continue-on-error: true # Don't fail the build if codecov fails | |
| timeout-minutes: 1 | |