Skip to content

Introduce/health endpoint #287

Introduce/health endpoint

Introduce/health endpoint #287

Workflow file for this run

name: docker-publish
on:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
# step 1: checkout repository code
- name: Checkout code into workspace directory
uses: actions/checkout@v4
# step 2: set up go
- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version: "1.22"
# step 3: install dependencies
- name: Install all Go dependencies
run: go mod download
# step 4: run test
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
build:
name: Build
needs:
- test
uses: ./.github/workflows/docker-build.yml
with:
app-name: sms-gateway
secrets:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}