blocky/.github/workflows/ci-build.yml

36 lines
872 B
YAML

name: CI Build
on: [push, pull_request]
jobs:
make:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
make: [build, test, race, docker-build, goreleaser]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
id: go
- name: Get dependencies
run: go mod download
- name: make ${{ matrix.make }}
run: make ${{ matrix.make }}
if: matrix.make != 'goreleaser'
- name: Upload results to codecov
uses: codecov/codecov-action@v3
if: matrix.make == 'test'
- name: Check GoReleaser configuration
uses: goreleaser/goreleaser-action@v3
if: matrix.make == 'goreleaser'
with:
args: check