fix(gardener): avoid issues caused by stale databases (#1516) #11
This file contains 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
# Runs tests for internal/libtor with -tags=ooni_libtor | |
name: libtorlinux | |
on: | |
push: | |
branches: | |
- "master" | |
- "release/**" | |
- "fullbuild" | |
jobs: | |
test_ooni_libtor: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get GOVERSION content | |
id: goversion | |
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT" | |
- uses: magnetikonline/action-golang-cache@v4 | |
with: | |
go-version: "${{ steps.goversion.outputs.version }}" | |
cache-key-suffix: "-libtorlinux-${{ steps.goversion.outputs.version }}" | |
- run: go run ./internal/cmd/buildtool linux cdeps zlib openssl libevent tor | |
- run: go test -count 1 -v -cover -tags ooni_libtor -race ./internal/libtor/... |