work/.forgejo/workflows/ci.yml
Patryk Hegenberg 43deb72b2d
Some checks failed
Go CI Pipeline / ci (push) Failing after 19s
fix: update workflow file
2025-06-04 13:52:48 +02:00

35 lines
684 B
YAML

name: Go CI Pipeline
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Get dependencies
run: go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v2-latest
# - name: Lint code
# run: |
# go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# golangci-lint run
- name: Run tests
run: go test -v ./...
- name: Build application
run: go build -o workctl .