Skip to content

Commit

Permalink
test: Add go-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3Shadowbroker committed Feb 7, 2024
1 parent 8121644 commit c361678
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Go Test

on: [push]

jobs:
test:
runs-on: ubuntu-latest

services:
docker:
image: docker:20.10.12-dind
ports:
- 2375:2375
- 9094:9094
- 27017:27017

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21

- name: Run go test
env:
KAFKA_HOST: docker:9094
KAFKA_IMAGE: bitnami/kafka
KAFKA_TAG: 3.4.1
MONGO_HOST: docker:27017
MONGO_IMAGE: mongo
MONGO_TAG: 7.0.5-rc0
run: go test -v ./...

0 comments on commit c361678

Please sign in to comment.