build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (#92) #112
This file contains hidden or 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: GitHub Actions CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: 'stable' | |
| - name: Ensure all files were formatted as per gofmt | |
| run: | | |
| [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] | |
| - name: Go Vet | |
| run: | | |
| go vet | |
| - name: Build and Test | |
| run: | | |
| go build -v ./cmd/... | |
| go test -v -race ./internal/... | |
| integrationtest: | |
| name: integrationtest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: 'stable' | |
| - name: Build Docker container with the tools our tests require | |
| run: | | |
| docker build --pull --no-cache --rm -t=router7 -f travis/Dockerfile . | |
| - name: Run tests in Docker container | |
| run: | | |
| exit=0; for pkg in $(go list ./integration/...); do go test -c $pkg && docker run --privileged --net=host -v $PWD:/usr/src:ro router7 /bin/sh -c "./$(basename $pkg).test -test.v" || exit=1; done; [ $exit = 0 ] |