forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (35 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2023 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
name: CI
on:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request.
pull_request:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push.
push:
branches:
- '**'
tags-ignore:
- '**'
concurrency:
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
cancel-in-progress: true
jobs:
linter:
name: 'Linter'
runs-on: [self-hosted, Linux]
if: github.event_name == 'pull_request'
env:
DOCKER_BUILDKIT: 1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 0
- name: Docker image
run: |
docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./
- name: Run linter
run: |
docker run --rm -v $GITHUB_WORKSPACE:/bitcoin -t bitcoin-linter