gomonop/.forgejo/workflows/build.yaml

37 lines
525 B
YAML
Raw Normal View History

name: Build and test project
2024-07-19 08:51:03 +02:00
on:
push:
branches:
- master
2024-07-19 08:51:03 +02:00
pull-request:
branches:
- master
2024-07-19 08:51:03 +02:00
jobs:
build:
runs-on: debian-12
2024-07-19 08:51:03 +02:00
strategy:
matrix:
2024-07-19 14:33:34 +02:00
go-version: [ '1.22' ]
2024-07-19 08:51:03 +02:00
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Go
2024-07-19 08:51:03 +02:00
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build for host architecture
2024-07-19 08:51:03 +02:00
run: |
make build
- name: Run tests
run: |
make test