work/.forgejo/workflows/ci.yml
Patryk Hegenberg 63c0b0c953
Some checks failed
Go CI Pipeline / ci (push) Failing after 15s
fix: change checkout out of colangci-lint
2025-06-04 14:02:18 +02:00

32 lines
721 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 v2.12.0
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 .