Обновить .gitea/workflows/build.yaml
All checks were successful
Go / build (push) Successful in 10m52s

This commit is contained in:
chertkov 2025-06-28 11:00:58 +03:00
parent 01bbd7179e
commit a3898a7822

View File

@ -1,10 +1,21 @@
name: 'Test Go Action'
on: [push]
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
use-go-action:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: 'stable'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...