Skip to content

use local go module cache to reduce CI time & avoid CI failure caused by dependencies #128

use local go module cache to reduce CI time & avoid CI failure caused by dependencies

use local go module cache to reduce CI time & avoid CI failure caused by dependencies #128

Workflow file for this run

name: lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
- name: format go
run: |
make fmt-go
if !git diff --exit-code; then
echo "Files are not well formatted"
exit 1
fi
- name: check generated files
run: |
make gen-proto
if !git diff --exit-code; then
echo "Generated files are not up-to-date"
exit 1
fi
- name: lint go
run: make lint-go
- name: lint proto
run: make lint-proto
- name: lint spell
run: make lint-spell
- name: lint editorconfig
run: |
# See https://editorconfig.org/ to know how to support editorconfig in your editor
make lint-editorconfig