Skip to content

feat(ci): Workflow Update for Checks #74

feat(ci): Workflow Update for Checks

feat(ci): Workflow Update for Checks #74

Workflow file for this run

name: Contract
on:
pull_request:
branches:
- main
- develop
workflow_dispatch:
permissions:
contents: read
jobs:
contract:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build and Run Server
env:
API_SECRET: hardcoded_secret
GIN_MODE: release
run: |
go build -o capture ./cmd/capture
./capture &
sleep 5
- name: Run Schemathesis Tests
uses: schemathesis/action@1f15936316e0742005bf69657b5909ac68f04cb3 # v2.1.0
with:
schema: './openapi.yml'
base-url: 'http://localhost:59232'
version: 'latest'
config-file: 'schemathesis.toml'
env:
API_SECRET: hardcoded_secret