Continuous Test Run #11157
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: Continuous Test Run | |
on: | |
schedule: | |
- cron: "*/15 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_API_VERSION: 1.43 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Build | |
run: go build -v ./... | |
run-unit-tests: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_API_VERSION: 1.43 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y etcd-server default-jre | |
- name: Install gotestsum | |
run: go install gotest.tools/gotestsum@latest | |
- name: Run Unit Tests | |
run: gotestsum -f pkgname-and-test-fails -- -race -count=1 -p=1 -timeout 10m -failfast ./... | |
run-integration-tests: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_API_VERSION: 1.43 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y etcd-server default-jre | |
- name: Install gotestsum | |
run: go install gotest.tools/gotestsum@latest | |
- name: Run Integration Tests | |
run: gotestsum -f pkgname-and-test-fails -- -race -count=1 -p=1 -timeout 10m -failfast -tags=integration ./integration/... |