Skip to content

Setup hello world and lint workflow (#1) #9

Setup hello world and lint workflow (#1)

Setup hello world and lint workflow (#1) #9

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
golangci-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: echo "GOLANGCI_LINT_VERSION=$(cat .golangci.version)" >> $GITHUB_ENV
- uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
shellcheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: scripts/shellcheck.sh