mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-10 13:58:36 +08:00
Run integration tests for additional DNS providers (#930)
This commit is contained in:
parent
866232e0fb
commit
df0f47b52c
1 changed files with 37 additions and 12 deletions
49
.github/workflows/build.yml
vendored
49
.github/workflows/build.yml
vendored
|
@ -5,34 +5,59 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.15
|
go-version: ^1.15
|
||||||
|
- name: Build binaries
|
||||||
|
run: go run build/build.go
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
- name: Run integration tests for BIND provider
|
integration-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
provider: [AZURE_DNS, BIND, CLOUDFLAREAPI, GCLOUD, NAMEDOTCOM, ROUTE53]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.15
|
||||||
|
- name: Run integration tests for ${{ matrix.provider }} provider
|
||||||
working-directory: integrationTest
|
working-directory: integrationTest
|
||||||
run: go test -v -verbose -provider BIND
|
run: go test -v -verbose -provider ${{ matrix.provider }}
|
||||||
|
|
||||||
- name: Run integration test for ROUTE53 provider
|
|
||||||
working-directory: integrationTest
|
|
||||||
run: go test -v -verbose -provider ROUTE53
|
|
||||||
env:
|
env:
|
||||||
|
AZURE_RESOURCE_GROUP: DNSControl
|
||||||
|
AZURE_DOMAIN: dnscontrol-azure.com
|
||||||
|
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
||||||
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
|
CF_DOMAIN: dnscontroltest-cf.com
|
||||||
|
CF_TOKEN: ${{ secrets.CF_TOKEN }}
|
||||||
|
GCLOUD_DOMAIN: dnscontroltest-gcloud.com
|
||||||
|
GCLOUD_TYPE: service_account
|
||||||
|
GCLOUD_EMAIL: dnscontrol@dnscontrol-dev.iam.gserviceaccount.com
|
||||||
|
GCLOUD_PROJECT: dnscontrol-dev
|
||||||
|
GCLOUD_PRIVATEKEY: ${{ secrets.GCLOUD_PRIVATEKEY }}
|
||||||
|
NAMEDOTCOM_DOMAIN: dnscontrol-ndc.com
|
||||||
|
NAMEDOTCOM_URL: api.name.com
|
||||||
|
NAMEDOTCOM_USER: dnscontroltest
|
||||||
|
NAMEDOTCOM_KEY: ${{ secrets.NAMEDOTCOM_KEY }}
|
||||||
R53_DOMAIN: dnscontroltest-r53.com
|
R53_DOMAIN: dnscontroltest-r53.com
|
||||||
R53_KEY_ID: ${{ secrets.R53_KEY_ID }}
|
R53_KEY_ID: ${{ secrets.R53_KEY_ID }}
|
||||||
R53_KEY: ${{ secrets.R53_KEY }}
|
R53_KEY: ${{ secrets.R53_KEY }}
|
||||||
|
|
||||||
- name: Build binaries
|
|
||||||
run: go run build/build.go
|
|
Loading…
Add table
Reference in a new issue