File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments