Skip to content

Update dependencies #15

Update dependencies

Update dependencies #15

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
- name: Verify dependencies
run: go mod verify
- name: Check formatting
run: |
unformatted="$(git ls-files -z '*.go' | xargs -0 gofmt -l)"
if [ -n "${unformatted}" ]; then
echo "The following Go files are not formatted:"
echo "${unformatted}"
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run tests
run: go test -race -count=1 ./...
- name: Test transparent upstream networking
run: ./bin/test-transparent-upstream.sh
- name: Build
run: go build -trimpath ./...