d922bd9afc
The objective is to make PR checks run much faster. See https://github.com/ooni/probe/issues/2113 for context. Regarding netxlite's tests: Checking for every commit on master or on a release branch is good enough and makes pull requests faster than one minute since netxlite for windows is now 1m slower than coverage. We're losing some coverage but coverage from integration tests is not so good anyway, so I'm not super sad about this loss.
22 lines
591 B
YAML
22 lines
591 B
YAML
# netxlite runs unit and integration tests on our fundamental net library
|
|
name: netxlite
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
- "release/**"
|
|
jobs:
|
|
test_netxlite_package:
|
|
runs-on: "${{ matrix.os }}"
|
|
strategy:
|
|
matrix:
|
|
go: [ "1.18.2" ]
|
|
os: [ "ubuntu-20.04", "windows-2019", "macos-10.15" ]
|
|
steps:
|
|
- uses: magnetikonline/action-golang-cache@v2
|
|
with:
|
|
go-version: "${{ matrix.go }}"
|
|
cache-key-suffix: "-coverage-${{ matrix.go }}"
|
|
- uses: actions/checkout@v2
|
|
- run: go test -race ./internal/netxlite/...
|