]> git.openstreetmap.org Git - dns.git/blob - .github/workflows/check.yml
Add missing repo to gh
[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       env:
32         GH_TOKEN: ${{ github.token }}
33       run: |
34         arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
35         && gh release download --repo https://github.com/StackExchange/dnscontrol --pattern "dnscontrol-*.${arch}.deb" --output /tmp/dnscontrol.deb \
36         && sudo apt install /tmp/dnscontrol.deb -y
37
38     - name: Run Check
39       run: |
40         make check