go-web-template/.gitea/workflows/build.yml

23 lines
412 B
YAML
Raw Normal View History

2024-08-25 16:50:24 +02:00
name: Build
2024-08-25 16:40:48 +02:00
on:
push:
branches:
- main
pull_request:
jobs:
2024-08-25 16:50:24 +02:00
build:
name: build
2024-08-25 16:40:48 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
2024-08-25 16:50:24 +02:00
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...