Add metrics for current number of HTTP client connections. #506
Workflow file for this run
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
name: tarball | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/tarball.yml' | |
- '**.go' | |
- 'go.*' | |
- 'Makefile' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/tarball.yml' | |
- '**.go' | |
- 'go.*' | |
- 'Makefile' | |
permissions: | |
contents: read | |
jobs: | |
create: | |
strategy: | |
matrix: | |
go-version: | |
- "1.20" | |
- "1.21" | |
- "1.22" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt -y update && sudo apt -y install protobuf-compiler | |
- name: Create tarball | |
run: | | |
echo "Building with $(nproc) threads" | |
make tarball | |
- name: Upload tarball | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tarball-${{ matrix.go-version }} | |
path: nextcloud-spreed-signaling*.tar.gz | |
test: | |
strategy: | |
matrix: | |
go-version: | |
- "1.20" | |
- "1.21" | |
- "1.22" | |
runs-on: ubuntu-latest | |
needs: [create] | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt -y update && sudo apt -y install protobuf-compiler | |
- name: Download tarball | |
uses: actions/download-artifact@v4 | |
with: | |
name: tarball-${{ matrix.go-version }} | |
- name: Extract tarball | |
run: | | |
mkdir -p tmp | |
tar xvf nextcloud-spreed-signaling*.tar.gz --strip-components=1 -C tmp | |
[ -d "tmp/vendor" ] || exit 1 | |
- name: Build | |
env: | |
GOPROXY: off | |
run: | | |
echo "Building with $(nproc) threads" | |
make -C tmp build -j$(nproc) | |
- name: Run tests | |
env: | |
GOPROXY: off | |
run: | | |
make -C tmp test TIMEOUT=120s |