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

23 lines
416 B
YAML
Raw Permalink 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
2024-08-25 17:07:45 +02:00
run: go get ./...
2024-08-25 16:50:24 +02:00
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...