3 on: [push, pull_request]
12 go-version: [ '1.16', '1.17' ]
15 - uses: actions/checkout@v2
18 uses: actions/setup-go@v2
20 go-version: ${{ matrix.go-version }}
23 run: go test -race -count 2 ./...
25 - name: Test Benchmarks
26 run: go test -race -run @ -bench . -benchtime 2x ./...
29 run: go test -run @ -bench . ./...
32 run: GOARCH=386 go test ./... -bench .
33 continue-on-error: true
35 - name: Some packages compile for WebAssembly
36 run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
37 # https://github.com/pion/webrtc/issues/2099
38 continue-on-error: true
41 # Need master for cross-compiling fix
42 run: go install github.com/anacrolix/godo@master
45 run: sudo apt install pv fuse
47 - name: torrentfs end-to-end test
48 # Test on 386 for atomic alignment and other bad 64-bit assumptions
49 run: GOARCH=386 fs/test.sh