From c63ddbe85e772878527a8844de0c0d1db60ce91e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 28 Nov 2022 13:06:45 +0000 Subject: [PATCH 1/1] Add github action check --- .github/dependabot.yml | 7 +++++++ .github/workflows/check.yml | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/check.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..438cb6f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "daily" diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..2c1dd44 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,38 @@ +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: | + apt-get update + apt-get install -y --no-install-recommends \ + make \ + libxml-treebuilder-perl \ + libyaml-libyaml-perl \ + libyaml-perl \ + libjson-xs-perl \ + gh + + - name: Install dnscontrol + run: | + arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \ + && gh release download --pattern 'dnscontrol-*.${arch}.deb --output /tmp/dnscontrol.deb \ + && apt install /tmp/dnscontrol.deb -y + + - name: Run Check + run: | + make check \ No newline at end of file -- 2.39.5