distribution/.forgejo/workflows/builds.yml
Pavel Pogodaev bdf2cf14b8
All checks were successful
/ Builds (1.21) (pull_request) Successful in 30s
/ Builds (1.22) (pull_request) Successful in 30s
/ DCO (pull_request) Successful in 48s
/ Vulncheck (pull_request) Successful in 1m18s
[#6] Add Forgejo Actions
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
2024-07-25 16:34:25 +03:00

23 lines
522 B
YAML

on: [pull_request]
jobs:
builds:
name: Builds
runs-on: ubuntu-latest
strategy:
matrix:
go_versions: [ '1.21', '1.22' ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '${{ matrix.go_versions }}'
- name: Build binary
run: make
- name: Check dirty suffix
run: if [[ $(make version) == *"dirty"* ]]; then echo "Version has dirty suffix" && exit 1; fi