Skip to content

Unix Coreutils

Unix Coreutils #16

Workflow file for this run

name: Go CI
on:
push:
tags:
- '*'
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
lint_and_format:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
args: --timeout 3m
- name: Go Format
run: gofmt -s -w . && git diff --exit-code
goreleaser:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
builds:

Check failure on line 45 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Go CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 45, Col: 5): Unexpected value 'builds'
- main: ./cmd
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}