Skip to content

Replaces logrus with log/slog #323

Replaces logrus with log/slog

Replaces logrus with log/slog #323

Workflow file for this run

name: Go build
on:
push:
paths:
- '.github/workflows/**'
- 'cmd/**'
- 'pkg/**'
- 'version/**'
- 'main.go'
- 'go.mod'
- 'go.sum'
pull_request:
paths:
- '.github/workflows/**'
- 'cmd/**'
- 'pkg/**'
- 'version/**'
- 'main.go'
- 'go.mod'
- 'go.sum'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build Dependencies
run: make buildDeps
- name: Build
run: make sonarcloud-version build
- name: Test
run: make ci-check
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: env.SONAR_TOKEN != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}