]> git.openstreetmap.org Git - dns.git/blob - .github/workflows/check.yml
ec221beeca4ea3d3ebec9f262c9ca3b98749cd1f
[dns.git] / .github / workflows / check.yml
1 name: dnscontrol check
2
3 on:
4   - push
5   - pull_request
6
7 # concurrency:
8 #  group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9 #  cancel-in-progress: true
10
11 jobs:
12   check:
13     runs-on: ubuntu-latest
14
15     steps:
16     - name: Checkout
17       uses: actions/checkout@v3
18
19     - name: Install dependencies
20       run: |
21         sudo apt-get update
22         sudo apt-get install -y --no-install-recommends \
23           make \
24           libxml-treebuilder-perl \
25           libyaml-libyaml-perl \
26           libyaml-perl \
27           libjson-xs-perl \
28           gh
29
30     - name: Install dnscontrol
31       run: |
32         arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
33         && gh release download --pattern "dnscontrol-*.${arch}.deb" --output /tmp/dnscontrol.deb \
34         && sudo apt install /tmp/dnscontrol.deb -y
35
36     - name: Run Check
37       run: |
38         make check