Skip to content

Test CI job

Test CI job #21

Workflow file for this run

name: Verify
on:
pull_request:
branches: [main]
workflow_call:
secrets:
MALACHITE_PRIVATE_REPO_SSH_KEY:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
MALACHITE_GIT_REF: "8a9f3702eb41199bc8a7f45139adba233a04744a"
jobs:
build:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }}
- name: Build via Docker Compose, exposing SSH agent to build container
run: docker compose build --ssh default
test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: actions/checkout@v4
with:
repository: farcasterxyz/malachite
ref: ${{ env.MALACHITE_GIT_REF }}
path: ./malachite
ssh-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }}
- uses: actions/checkout@v4
with:
path: ./snapchain
- working-directory: ./snapchain
run: cargo build --locked
- working-directory: ./snapchain
run: cargo test
- working-directory: ./snapchain
run: cargo fmt --all --check