linux-bench/.github/workflows/build.yml

37 lines
791 B
YAML
Raw Permalink Normal View History

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
runs-on: ubuntu-22.04
2020-12-17 17:26:38 +00:00
steps:
- name: Setup Go
uses: actions/setup-go@v5
2020-12-17 17:26:38 +00:00
with:
go-version: 1.21.6
2020-12-17 17:26:38 +00:00
- name: Checkout code
uses: actions/checkout@v4
2020-12-17 17:26:38 +00:00
- name: Run unit tests
run: make tests
- name: Upload code coverage
uses: codecov/codecov-action@v3
2020-12-17 17:26:38 +00:00
with:
file: ./coverage.txt
- name: Dry-run release snapshot
uses: goreleaser/goreleaser-action@v5
2020-12-17 17:26:38 +00:00
with:
version: v1.7.0
2020-12-17 17:26:38 +00:00
args: release --snapshot --skip-publish --rm-dist