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 .