work/.forgejo/workflows/ci.yml
Patryk Hegenberg 3b4835026f
Some checks failed
Go CI Pipeline / ci (push) Successful in 24s
Release Builds / build (darwin, macos-latest) (push) Failing after 28s
Release Builds / build (linux, ubuntu-latest) (push) Failing after 20s
Release Builds / build (windows, windows-latest) (push) Failing after 31s
fix: change version for lint to latest
2025-06-04 14:03:35 +02:00

32 lines
720 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: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run golangci-lint
run: golangci-lint run
- name: Run tests
run: go test -v ./...
- name: Build application
run: go build -o workctl .