Skip to content

Integration Test

Integration Test #100

name: Integration Test
on:
schedule:
- cron: '0 1 * * *' # run at 1 AM UTC
# Allow to trigger the integration tests manually
workflow_dispatch:
jobs:
integration-test:
if: ${{ github.repository == 'warpstreamlabs/bento' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
check-latest: true
- name: Deps
run: make deps && git diff-index --quiet HEAD || { >&2 echo "Stale go.{mod,sum} detected. This can be fixed with 'make deps'."; exit 1; }
- name: Integration Test
run: go test -run "^Test.*Integration$" -timeout 60m ./...