Skip to content

add goat integration tests #1

add goat integration tests

add goat integration tests #1

name: Integration Tests
on:
push:
branches: main
jobs:
integration_tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.22"
- name: Install Goat
run: go install github.com/studio-b12/goat/cmd/goat@latest
- name: Install vercel CLI
run: bun install --global vercel
- name: Run Vercel Dev
run: |
vercel dev --token ${{ secrets.VERCEL_TOKEN }} --yes &
for attempt in {1..20}; do sleep 1; if curl http://localhost:3000; then echo ready; break; fi; echo waiting ...; done
goat --params tests/dev.params.toml tests/tests.goat