24 lines
575 B
YAML
24 lines
575 B
YAML
name: Long-Running Unit Test
|
|
on: pull_request
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Long Running Unit Test
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.17'
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: ${{ inputs.os }}-go-
|
|
|
|
- run: go install ./cmd/litestream
|
|
|
|
- run: go test -v -run=TestCmd_Replicate_LongRunning ./integration -long-running-duration 1m
|