Skip to content

Merge pull request #202 from mailgun/fix-compose #157

Merge pull request #202 from mailgun/fix-compose

Merge pull request #202 from mailgun/fix-compose #157

Workflow file for this run

name: CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
test:
name: test
strategy:
matrix:
go-version:
- 1.21.x # a minimum supported version(from go.mod)
- 1.22.x
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true # caching and restoring go modules and build outputs
- run: go env
- name: Install deps
run: go mod download
- name: Start containers
run: docker compose up -d --build
- name: Test
run: make test
- name: Stop containers
if: always()
run: docker compose down