Skip to content

Add github action workflow for docker build #49

Add github action workflow for docker build

Add github action workflow for docker build #49

Workflow file for this run

name: Build and Test
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build & Test
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup go
uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
-
name: Download dependencies
run: go mod download
-
name: Build & Test
run: |
go build -o ./cert-checker -v ./cmd/
go test ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --snapshot --skip-publish --rm-dist
workdir: ./cmd/