3 on: [push, pull_request]
15 - uses: actions/checkout@v2
18 if: matrix.go-version != 'tip'
19 uses: actions/setup-go@v2
21 go-version: ${{ matrix.go-version }}
24 if: matrix.go-version == 'tip'
26 git clone --depth=1 https://go.googlesource.com/go "$HOME/gotip"
29 echo "GOROOT=$HOME/gotip" >> "$GITHUB_ENV"
30 echo "$HOME/gotip/bin:$PATH" >> "$GITHUB_PATH"
33 run: go test -race -count 2 ./...
35 - name: Test Benchmarks
36 run: go test -race -run @ -bench . -benchtime 2x ./...
39 run: go test -run @ -bench . ./...
42 run: GOARCH=386 go test ./... -bench .
43 continue-on-error: true
45 - name: Some packages compile for WebAssembly
46 run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
49 run: go install github.com/anacrolix/godo@latest
52 run: sudo apt install pv fuse
54 - name: torrentfs end-to-end test