Skip to content

wiring up backend k8sclient #20

wiring up backend k8sclient

wiring up backend k8sclient #20

Workflow file for this run

on:
pull_request:
paths:
- backend/**
name: Lint
jobs:
golangci:
name: golang-lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: backend/go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m
working-directory: backend
buf:
name: buf-lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v3
- name: Retrieve Buf Version
run: |
VER=$(cat BUF_VERSION)
echo "BUF_VERSION=$VER" >> $GITHUB_ENV
- name: Setup Buf
uses: bufbuild/[email protected]
with:
version: ${{ env.BUF_VERSION }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Buf Lint
uses: bufbuild/buf-lint-action@v1
with:
input: backend
gofmt:
name: gofmt
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: backend/go.mod
- name: Check Go Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
# sqlc:
# name: sqlc
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# path: backend
# - name: Retrieve SQLC Version
# run: |
# VER=$(cat SQLC_VERSION)
# echo "SQLC_VERSION=$VER" >> $GITHUB_ENV
# - uses: sqlc-dev/setup-sqlc@v3
# with:
# sqlc-version: ${{ env.SQLC_VERSION }}
# - run: sqlc diff
# - run: sqlc vet