23 lines
425 B
YAML
23 lines
425 B
YAML
name: GoLang Tests
|
|
run-name: ${{ gitea.actor }} is testing golang Code
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
container:
|
|
image: golang:1.22
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Go dependencies
|
|
shell: sh
|
|
run: |
|
|
go mod tidy
|
|
|
|
- name: Run tests
|
|
shell: sh
|
|
run: |
|
|
go test ./... -v
|