2020-12-17 17:26:38 +00:00
|
|
|
name: build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- "*.md"
|
|
|
|
- "LICENSE"
|
|
|
|
- "NOTICE"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "*.md"
|
|
|
|
- "LICENSE"
|
|
|
|
- "NOTICE"
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
2023-02-06 12:14:30 +05:30
|
|
|
runs-on: ubuntu-22.04
|
2020-12-17 17:26:38 +00:00
|
|
|
steps:
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2023-02-06 12:14:30 +05:30
|
|
|
go-version: 1.19
|
2020-12-17 17:26:38 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run unit tests
|
|
|
|
run: make tests
|
|
|
|
- name: Upload code coverage
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
file: ./coverage.txt
|
|
|
|
- name: Dry-run release snapshot
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
with:
|
|
|
|
version: v0.148.0
|
|
|
|
args: release --snapshot --skip-publish --rm-dist
|