Skip to content

Update preparation-process.md #194

Update preparation-process.md

Update preparation-process.md #194

Workflow file for this run

name: Lint
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: read
jobs:
files-changed:
name: Detect file changes
runs-on: ubuntu-latest
outputs:
go: ${{ steps.changes.outputs.go }}
docs: ${{ steps.changes.outputs.docs }}
any: ${{ steps.changes.outputs.any }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check for backend file changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: .github/filters.yml
golangci:
name: "golangci-lint"
needs: [ files-changed ]
if: needs.files-changed.outputs.go == 'true'
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
cache: false
go-version-file: go.mod
check-latest: true
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt install libpam0g-dev
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60