Skip to content

setup integration tests environment #128

setup integration tests environment

setup integration tests environment #128

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 listener
run: |
cd ./listener
go build -a -installsuffix cgo -o bin/listener ./cmd/listener
- name: Build jwt-generator
run: |
cd ./listener
go build -a -installsuffix cgo -o bin/jwt-generator ./cmd/jwt-generator
- name: Setup Integration Test Environment
run: |
docker compose -f docker-compose-ci.yml up --build -d
- name: Test
run: |
cd ./listener
go test -v ./...