Skip to content

Merge pull request #57 from ytsarev/update-go-releaser #94

Merge pull request #57 from ytsarev/update-go-releaser

Merge pull request #57 from ytsarev/update-go-releaser #94

Workflow file for this run

name: Lint, Test, Golic
on:
push:
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
jobs:
skip-check:
runs-on: ubuntu-latest
name: Skip the job?
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
do_not_skip: '["workflow_dispatch", "schedule"]'
# Linting is in a separate job because golangci-lint is quite slow when
# running it in cold-start mode.
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.0'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: --timeout=3m30s
- name: go test
run: go test ./...
- name: golic
run: |
go install github.com/AbsaOSS/[email protected]
golic inject --dry -x -t apache2 -c "2022 The k8gb Contributors"