From b2dcc726342d3f44f0648ac2f4b6521d083a1f35 Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Thu, 21 Nov 2024 14:59:10 -0800 Subject: [PATCH] Test CI job --- .github/workflows/verify.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index c5bbde2f..eeb6281b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -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 }} @@ -22,31 +27,31 @@ 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: actions/checkout@v4 with: repository: farcasterxyz/malachite ref: ${{ inputs.malachite_git_ref }} - path: malachite + path: ./malachite + ssh-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }} - 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