diff --git a/.github/workflows/cross-darwin.yml b/.github/workflows/cross-darwin.yml deleted file mode 100644 index 6158cc32c..000000000 --- a/.github/workflows/cross-darwin.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Darwin-Cross - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: macOS build cmd - env: - GOOS: darwin - GOARCH: amd64 - run: go build ./cmd/... - - - name: macOS build tests - env: - GOOS: darwin - GOARCH: amd64 - run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -c ); done - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/cross-freebsd.yml b/.github/workflows/cross-freebsd.yml deleted file mode 100644 index b0793ee9f..000000000 --- a/.github/workflows/cross-freebsd.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: FreeBSD-Cross - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: FreeBSD build cmd - env: - GOOS: freebsd - GOARCH: amd64 - run: go build ./cmd/... - - - name: FreeBSD build tests - env: - GOOS: freebsd - GOARCH: amd64 - run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -c ); done - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/cross-openbsd.yml b/.github/workflows/cross-openbsd.yml deleted file mode 100644 index d29819f75..000000000 --- a/.github/workflows/cross-openbsd.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: OpenBSD-Cross - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: OpenBSD build cmd - env: - GOOS: openbsd - GOARCH: amd64 - run: go build ./cmd/... - - - name: OpenBSD build tests - env: - GOOS: openbsd - GOARCH: amd64 - run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -c ); done - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/cross-windows.yml b/.github/workflows/cross-windows.yml deleted file mode 100644 index d1e5e4c3d..000000000 --- a/.github/workflows/cross-windows.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Windows-Cross - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Windows build cmd - env: - GOOS: windows - GOARCH: amd64 - run: go build ./cmd/... - - - name: Windows build tests - env: - GOOS: windows - GOARCH: amd64 - run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -c ); done - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/depaware.yml b/.github/workflows/depaware.yml deleted file mode 100644 index 829304613..000000000 --- a/.github/workflows/depaware.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: depaware - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - - - name: Check out code - uses: actions/checkout@v1 - - - name: depaware tailscaled - run: go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscaled - - - name: depaware tailscale - run: go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscale diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml deleted file mode 100644 index 9dba471f1..000000000 --- a/.github/workflows/license.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: license - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - - - name: Check out code - uses: actions/checkout@v1 - - - name: Run license checker - run: ./scripts/check_license_headers.sh . - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/linux-race.yml b/.github/workflows/linux-race.yml deleted file mode 100644 index 03b5dccd6..000000000 --- a/.github/workflows/linux-race.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Linux race - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Basic build - run: go build ./cmd/... - - - name: Run tests and benchmarks with -race flag on linux - run: go test -race -bench=. -benchtime=1x ./... - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index b4f82b6ef..000000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Linux - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Basic build - run: go build ./cmd/... - - - name: Run tests on linux - run: go test -bench=. -benchtime=1x ./... - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - diff --git a/.github/workflows/linux32.yml b/.github/workflows/linux32.yml deleted file mode 100644 index 79a229d16..000000000 --- a/.github/workflows/linux32.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Linux 32-bit - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Basic build - run: GOARCH=386 go build ./cmd/... - - - name: Run tests on linux - run: GOARCH=386 go test -bench=. -benchtime=1x ./... - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - diff --git a/.github/workflows/staticcheck.yml b/.github/workflows/staticcheck.yml deleted file mode 100644 index 607e035dd..000000000 --- a/.github/workflows/staticcheck.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: staticcheck - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.16 - - - name: Check out code - uses: actions/checkout@v1 - - - name: Run go vet - run: go vet ./... - - - name: Install staticcheck - run: "GOBIN=~/.local/bin go install honnef.co/go/tools/cmd/staticcheck" - - - name: Print staticcheck version - run: "staticcheck -version" - - - name: Run staticcheck (linux/amd64) - run: "GOOS=linux GOARCH=amd64 staticcheck -- $(go list ./... | grep -v tempfork)" - - - name: Run staticcheck (darwin/amd64) - run: "GOOS=darwin GOARCH=amd64 staticcheck -- $(go list ./... | grep -v tempfork)" - - - name: Run staticcheck (windows/amd64) - run: "GOOS=windows GOARCH=amd64 staticcheck -- $(go list ./... | grep -v tempfork)" - - - name: Run staticcheck (windows/386) - run: "GOOS=windows GOARCH=386 staticcheck -- $(go list ./... | grep -v tempfork)" - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' diff --git a/.github/workflows/windows-race.yml b/.github/workflows/windows-race.yml index a3c99822f..e20ba6c07 100644 --- a/.github/workflows/windows-race.yml +++ b/.github/workflows/windows-race.yml @@ -36,20 +36,4 @@ jobs: # Don't use -bench=. -benchtime=1x. # Somewhere in the layers (powershell?) # the equals signs cause great confusion. - run: go test -race -bench . -benchtime 1x ./... - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - + run: go test -race -count=100000 -run=TestPipeTimeout -timeout=100h ./net/nettest diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index 2783e3aee..000000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Windows - -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - test: - runs-on: windows-latest - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: 1.16.x - - - name: Checkout code - uses: actions/checkout@v2 - - - name: Restore Cache - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: Test - # Don't use -bench=. -benchtime=1x. - # Somewhere in the layers (powershell?) - # the equals signs cause great confusion. - run: go test -bench . -benchtime 1x ./... - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - diff --git a/.github/workflows/xe-experimental-vm-test.yml b/.github/workflows/xe-experimental-vm-test.yml deleted file mode 100644 index 1d15dcbab..000000000 --- a/.github/workflows/xe-experimental-vm-test.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: "integration-vms" - -on: - pull_request: - paths: - - "tstest/integration/vms/**" - push: - branches: [ main ] - release: - types: [ created ] - -jobs: - experimental-linux-vm-test: - # To set up a new runner, see tstest/integration/vms/runner.nix - runs-on: [ self-hosted, linux, vm_integration_test ] - - if: "!contains(github.event.head_commit.message, '[ci skip]')" - - steps: - - name: Checkout Code - uses: actions/checkout@v1 - - - name: Download VM Images - run: go test ./tstest/integration/vms -run-vm-tests -run=Download -timeout=60m -no-s3 - env: - XDG_CACHE_HOME: "/var/lib/ghrunner/cache" - - - name: Run VM tests - run: go test ./tstest/integration/vms -v -run-vm-tests - env: - TMPDIR: "/tmp" - XDG_CACHE_HOME: "/var/lib/ghrunner/cache" - - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push'