Skip to content

minor fix for multiple dns zones / fuzzy search of zones #1

minor fix for multiple dns zones / fuzzy search of zones

minor fix for multiple dns zones / fuzzy search of zones #1

Workflow file for this run

name: lint, build, test
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
name: Lint the waf cert uploader source code
runs-on: ubuntu-22.04
steps:
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: Checkout
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
build:
needs: lint
name: Build the waf cert uploader
runs-on: ubuntu-latest
steps:
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: ^1.21
- name: Checkout
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v -o waf-cert-uploader
- name: Upload the built binary executable for testing
uses: actions/upload-artifact@v2
with:
name: build
path: waf-cert-uploader
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
run: go test -v ./...