cert-manager-webhook-dnsimple/.forgejo/workflows/test.yaml

31 lines
821 B
YAML
Raw Normal View History

2024-05-15 11:19:49 -05:00
on:
push:
branches:
- main
pull_request:
jobs:
test:
2024-05-20 09:19:13 -05:00
runs-on: docker
2024-05-15 11:19:49 -05:00
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
2024-05-15 11:24:40 -05:00
uses: https://code.forgejo.org/actions/setup-go@v5
2024-05-15 11:19:49 -05:00
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
2024-05-15 11:28:54 -05:00
run: make test TEST_ZONE_NAME=${{ secrets.TEST_ZONE_NAME }}
2024-05-15 11:19:49 -05:00
- name: Clean up
run: rm -f testdata/dnsimple/dnsimple-secret.yaml