Skip to content

GitHub Actions workflow for building and pushing multi-platform Docker images to Docker Hub #99

GitHub Actions workflow for building and pushing multi-platform Docker images to Docker Hub

GitHub Actions workflow for building and pushing multi-platform Docker images to Docker Hub #99

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
go:
- '1.19'
- '1.20'
name: Go ${{ matrix.go }} tests
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: ./test.sh