[#103] Bump golang.org/x/net to latest version (#104) #47
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: Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.md" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.md" | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.21.0' | |
- name: Setup | |
run: | | |
go mod download | |
go install golang.org/x/lint/golint@latest | |
go get -t ./... | |
- name: Format | |
run: | | |
unformatted_code=$(gofmt -l .) | |
if [ -n "$unformatted_code" ]; then | |
echo "Improperly formatted code:" | |
echo "$unformatted_code" | |
exit 1 | |
fi | |
- name: Lint | |
run: | | |
golint -set_exit_status ./... | |
- name: Vet | |
run: | | |
go vet ./... | |
- name: Test | |
run: | | |
docker system prune -f | |
docker-compose -f ./docker/docker-compose-tests.yml up --build --no-color tests | |
go tool cover -func coverage.out | |
- name: Build Integration Tests | |
run: | | |
go test --tags=integration ./integration -c -o integration/bin/sc-test | |
go test --tags=local_integration ./cmd/connector -c -o ./integration/bin/cmd-test | |
go test --tags=local_integration ./config -c -o ./integration/bin/config-test | |
go test --tags=local_integration ./connector -c -o ./integration/bin/connector-test | |
go test --tags=local_integration ./routing -c -o ./integration/bin/routing-test |