From 0ea238f22dd5b24ed99e4867e8025341c3bd4d9f Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 15 May 2024 11:19:49 -0500 Subject: [PATCH] Add test workflow. --- .forgejo/workflows/test.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/test.yaml diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml new file mode 100644 index 0000000..be89afe --- /dev/null +++ b/.forgejo/workflows/test.yaml @@ -0,0 +1,31 @@ +on: + push: + branches: + - main + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Go + run: actions/setup-go@v5 + with: + go-version: '1.22.3' + - name: Output File + run: | + echo " + apiVersion: v1 + kind: Secret + metadata: + name: dnsimple-api-token + namespace: basic-present-record + stringData: + api-token: $API_TOKEN" > testdata/dnsimple/dnsimple-secret.yaml + env: + API_TOKEN: ${{ secrets.API_TOKEN }} + - name: Test + run: make test TEST_ZONE_NAME={{ secrets.TEST_ZONE_NAME }} + - name: Clean up + run: rm -f testdata/dnsimple/dnsimple-secret.yaml \ No newline at end of file