refactor: set InsecureSkipVerify
only once (#822)
#454
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goarch: [amd64, arm64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Test | |
run: | | |
# Run tests only when GOARCH is amd64, otherwize run builds only. | |
if [ "${{ matrix.goarch }}" = "amd64" ]; then | |
make build test | |
else | |
GOARCH=${{ matrix.goarch }} make build | |
fi | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ddns-go_${{ matrix.goarch }} | |
path: ddns-go |