chore: add testing to workflow

pull/20/head
Gabe Farrell 6 months ago
parent 2a29c43ac2
commit 2fc4de9643

@ -9,11 +9,31 @@
name: Publish Docker image
on: workflow_dispatch
on:
push:
branches: [main]
jobs:
test:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test
uses: robherley/go-test-action@v0
push_to_registry:
name: Push Docker image to Docker Hub
needs: test
runs-on: ubuntu-latest
permissions:
packages: write

Loading…
Cancel
Save