Skip to content

Commit bc41848

Browse files
willcl-arkm3dwards
andcommitted
ci: port lint
Co-authored-by: Max Edwards <[email protected]>
1 parent d290a8e commit bc41848

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,3 +525,32 @@ jobs:
525525

526526
- name: Save caches
527527
uses: ./.github/actions/save-caches
528+
529+
lint:
530+
name: 'lint'
531+
needs: runners
532+
runs-on: ${{ needs.runners.outputs.use-cirrus-runners == 'true' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm' || 'ubuntu-24.04' }}
533+
if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
534+
timeout-minutes: 20
535+
env:
536+
CONTAINER_NAME: "bitcoin-linter"
537+
steps:
538+
- name: Checkout
539+
uses: actions/checkout@v5
540+
with:
541+
fetch-depth: 0
542+
543+
- name: Configure Docker
544+
uses: ./.github/actions/configure-docker
545+
with:
546+
use-cirrus: ${{ needs.runners.outputs.use-cirrus-runners }}
547+
548+
- name: CI script
549+
run: |
550+
set -o xtrace
551+
docker buildx build -t "$CONTAINER_NAME" $DOCKER_BUILD_CACHE_ARG --file "./ci/lint_imagefile" .
552+
CIRRUS_PR_FLAG=""
553+
if [ "${{ github.event_name }}" = "pull_request" ]; then
554+
CIRRUS_PR_FLAG="-e CIRRUS_PR=1"
555+
fi
556+
docker run --rm $CIRRUS_PR_FLAG -v "$(pwd)":/bitcoin "$CONTAINER_NAME"

0 commit comments

Comments
 (0)