Files
simpleorm/.gitea/workflows/test.yml
T
gdulai 2bff415789
Go Tests / test (push) Successful in 32s
Workflow fix (#11)
Reviewed-on: #11
2026-11-07 09:15:51 +00:00

39 lines
669 B
YAML

name: Go Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: golang:1.26.2
steps:
- name: Checkout repository
run: |
git clone \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" \
.
git checkout "${GITHUB_SHA}"
- name: Verify checkout
run: |
pwd
ls -la
test -f go.mod
- name: Download dependencies
run: |
go mod download
- name: Run tests
run: |
go test ./... -v
- name: Build binary
run: |
go build -o app .