Skip to content

Commit

Permalink
👷 ci: add golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbus committed Jan 13, 2025
1 parent 1d6787a commit b7f37fc
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,21 @@ on:
- "go.*"
- ".github/workflows/build.yml"
- "!tests/**"
push:
branches: [ OSC-MIGRATION ]
paths:
- "**.go"
- "Dockerfile"
- "Makefile"
- "go.*"
- ".github/workflows/build.yml"
- "!tests/**"
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
Build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- uses: actions/checkout@v4
- name: Docker Lint
run: bash -c "make dockerlint"
- name: Check
run: bash -c "make verify"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.63
args: --timeout=300s
only-new-issues: true
- name: Test
run: bash -c "make test"
- name: Image
Expand Down

0 comments on commit b7f37fc

Please sign in to comment.