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

36 lines
872 B
YAML
Raw Normal View History

2020-01-12 18:23:35 +01:00
name: CI Build
2021-03-01 09:05:09 +01:00
on: [push, pull_request]
2020-01-12 18:23:35 +01:00
jobs:
2022-09-23 21:18:41 +02:00
make:
2022-09-23 21:24:14 +02:00
name: Test
2020-01-12 18:23:35 +01:00
runs-on: ubuntu-latest
2022-09-23 21:18:41 +02:00
strategy:
matrix:
2022-09-23 21:24:14 +02:00
make: [build, test, race, docker-build, goreleaser]
2020-01-12 18:23:35 +01:00
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
2020-01-12 18:23:35 +01:00
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
id: go
- name: Get dependencies
2022-09-23 21:24:14 +02:00
run: go mod download
2022-09-23 21:18:41 +02:00
- name: make ${{ matrix.make }}
run: make ${{ matrix.make }}
2022-09-23 21:24:14 +02:00
if: matrix.make != 'goreleaser'
- name: Upload results to codecov
uses: codecov/codecov-action@v3
2022-09-23 21:18:41 +02:00
if: matrix.make == 'test'
- name: Check GoReleaser configuration
uses: goreleaser/goreleaser-action@v3
2022-09-23 21:24:14 +02:00
if: matrix.make == 'goreleaser'
with:
args: check