Skip to content

Commit

Permalink
Test CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
sds committed Nov 22, 2024
1 parent 5d23a33 commit e983e5c
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
required: true
type: string
default: "8a9f3702eb41199bc8a7f45139adba233a04744a"
secrets:
MALACHITE_PRIVATE_REPO_SSH_KEY:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -22,31 +27,34 @@ jobs:
- uses: actions/cache/restore@v4
id: malachite-cache
with:
path: malachite
path: ./malachite
key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.malachite_git_ref }}
- if: ${{ steps.malachite-cache.outputs.cache-hit != 'true' }}
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }}
- if: ${{ steps.malachite-cache.outputs.cache-hit != 'true' }}
uses: actions/checkout@v4
with:
repository: farcasterxyz/malachite
ref: ${{ inputs.malachite_git_ref }}
path: malachite
path: ./malachite
- if: ${{ steps.malachite-cache.outputs.cache-hit != 'true' }}
working-directory: malachite/code
working-directory: ./malachite/code
run: cargo build
- if: ${{ steps.malachite-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
id: malachite-cache
with:
path: malachite
path: ./malachite
key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.malachite_git_ref }}

- uses: actions/checkout@v4
with:
path: snapchain
- working-directory: snapchain
path: ./snapchain
- working-directory: ./snapchain
run: cargo build
- working-directory: snapchain
- working-directory: ./snapchain
run: cargo test
- working-directory: snapchain
- working-directory: ./snapchain
run: cargo fmt --all --check

0 comments on commit e983e5c

Please sign in to comment.