Skip to content

fix: storage k8s segfault #7

fix: storage k8s segfault

fix: storage k8s segfault #7

Workflow file for this run

# Implicit requirements
# runner must have `docker` and `curl` installed (true on github-runners)
name: run-lint
on:
push:
branches:
- 'master'
workflow_call:
jobs:
smart-checkout:
runs-on: ubuntu-latest
steps:
- name: checkout-when-fork-source
uses: actions/checkout@v3
if: github.event.pull_request.head.sha != ''
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: checkout-when-this-repo-source
uses: actions/checkout@v3
if: github.event.pull_request.head.sha == ''
golangci:
name: golangci-lint
concurrency:
group: lint-golangci-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
autoformatter:
name: autoformat check
concurrency:
group: lint-autoformat-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Install utilities
run: |
go install mvdan.cc/[email protected]
go install github.com/rinchsan/gosimports/cmd/[email protected]
- name: format all files with auto-formatter
run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
- name: Check repository diff
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken"