Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: added reviewdog #521

Merged
merged 9 commits into from
Jun 3, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 10 additions & 15 deletions .github/workflows/golangci.yml
@@ -1,21 +1,16 @@
name: Code analysis


name: golangci-lint
on: [ push, pull_request ]
on: [pull_request]
jobs:
golangci:
if: "!contains(github.event.head_commit.message, 'autoupdate')"
name: lint
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
go-version: 1.18

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
fetch-depth: 0
- name: Linting with golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
version: latest
github_token: ${{ secrets.ACCESS_TOKEN }}
reporter: github-pr-review
4 changes: 4 additions & 0 deletions pterm.go
Expand Up @@ -83,4 +83,8 @@ func RecalculateTerminalSize() {
DefaultBarChart.Width = GetTerminalWidth() * 2 / 3
DefaultBarChart.Height = GetTerminalHeight() * 2 / 3
DefaultParagraph.MaxWidth = GetTerminalWidth()

if true {
MarvinJWendt marked this conversation as resolved.
Show resolved Hide resolved
// TODO remove
MarvinJWendt marked this conversation as resolved.
Show resolved Hide resolved
}
}