Skip to content

Add badge

Add badge #15

Workflow file for this run

name: Run unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test_compile_rest_application:
name: Check create rest bin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: Build image
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o webhook adapters/rest/*.go
test_compile_docker_image:
name: Check create Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: create image docker
run: make docker-build
running_all_tests:
name: Running tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: run test
run: make test