go-web-template/.gitea/workflows/build.yml
2024-08-25 17:07:45 +02:00

23 lines
416 B
YAML

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: go get ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...