forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 780 Bytes
/
libtorlinux.yml
File metadata and controls
29 lines (23 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Runs tests for internal/libtor with -tags=ooni_libtor
name: libtorlinux
on:
pull_request:
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/...