-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (33 loc) · 978 Bytes
/
check.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
name: dnscontrol check
on:
- push
- pull_request
# concurrency:
# group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
# cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
make \
libxml-treebuilder-perl \
libyaml-libyaml-perl \
libyaml-perl \
libjson-xs-perl \
gh
- name: Install dnscontrol
env:
GH_TOKEN: ${{ github.token }}
run: |
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
&& gh release download --repo https://github.com/StackExchange/dnscontrol --pattern "dnscontrol-*.${arch}.deb" --output /tmp/dnscontrol.deb \
&& sudo apt install /tmp/dnscontrol.deb -y
- name: Run Check
run: |
make check