-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 938 Bytes
/
test.yml
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
30
31
32
33
34
35
36
37
38
39
name: Run tests
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
go-version: [1.21]
os: [ubuntu-24.04, ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Enable the curl_proxy_http2 build tag
id: enable-curl_proxy_http2
if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macOS-latest' }}
run: echo "build-opts=--tags curl_proxy_http2" >> $GITHUB_OUTPUT
- name: Build
run: go build ${{ steps.enable-curl_proxy_http2.outputs.build-opts }} -v ./...
- name: Test
run: go test ${{ steps.enable-curl_proxy_http2.outputs.build-opts }} -v ./...