diff --git a/.github/workflows/actions/go-test-setup.yml b/.github/workflows/actions/go-test-setup.yml new file mode 100644 index 0000000..fad3c9e --- /dev/null +++ b/.github/workflows/actions/go-test-setup.yml @@ -0,0 +1,7 @@ +runs: + using: "composite" + steps: + - name: increase the UDP receive buffer size # see https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size + shell: bash + run: sysctl -w net.core.rmem_max=2500000 + if: ${{ matrix.os == 'ubuntu' }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4064357..001726f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,10 +51,13 @@ jobs: postgresql db: 'postgres' postgresql user: 'postgres' postgresql password: 'postgres' - - name: Setup gotestsum run: go install gotest.tools/gotestsum@latest + - name: Run repo-specific setup + uses: ./.github/actions/go-test-setup + if: hashFiles('./.github/actions/go-test-setup') != '' + - name: Test env: W3S_TOKEN_TEST: ${{ secrets.W3S_TOKEN_TEST }}