Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Add "capacity" setting to limit the number of concurrent sessions #2

Add "capacity" setting to limit the number of concurrent sessions

Add "capacity" setting to limit the number of concurrent sessions #2

Workflow file for this run

on:
pull_request:
push:
branches:
- main
name: Test
jobs:
test:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Read Go version
id: go_version
run: echo "go_version=$(cat .go-version)" >> $GITHUB_OUTPUT
- name: Install Go (${{ steps.go_version.outputs.go_version }})
uses: actions/setup-go@v4
with:
go-version: ${{ steps.go_version.outputs.go_version }}
cache: true
- name: Test
run: go test -race -coverprofile=covreport -covermode=atomic -coverpkg=$(./hack/coverpkgs.sh) -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: covreport