Skip to content

Integration Test

Integration Test #195

name: Integration Test
on:
schedule:
- cron: '0 1 * * *' # run at 1 AM UTC
jobs:
integration-test:
if: ${{ github.repository == 'wombatwisdom/wombat' || 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: Setup go-task / task / taskfile
uses: rnorton5432/setup-task@v1
- name: Deps
run: task 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 ./...