From b3fe359be7d89fc0b4a25a279c66169f417331b6 Mon Sep 17 00:00:00 2001 From: Omar Jatoi Date: Mon, 13 Oct 2025 09:05:38 -0400 Subject: [PATCH] Add GitHub Actions workflow to build and test package --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1bdddbf --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: libdns/dnsimple + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + cache: true + - name: Build + run: go build -v + - name: Test + run: go test -v + env: + TEST_API_ACCESS_TOKEN: ${{ secrets.TEST_API_ACCESS_TOKEN }} + TEST_ZONE: ${{ secrets.TEST_ZONE }}