Skip to content

setup integration tests environment #126

setup integration tests environment

setup integration tests environment #126

Workflow file for this run

name: Go Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.0'
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: |
cd ./listener
go build -a -installsuffix cgo -o bin/listener ./cmd/listener
- name: Setup Integration Test Environment
run: |
docker compose -f docker-compose-ci.yml up --build -d
- name: Test
run: |
cd ./listener
go test -v ./...