Chore(CI/CD): Add new workflow to create image for each opened PR #338
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
push: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'go.sum' | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run linters | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
args: --timeout 5m |