From 4a727da65a83a7ac451a68d0ad88d648fbb731bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20=C5=9Ei=C5=9Fmano=C4=9Flu?= Date: Tue, 27 Feb 2024 00:08:12 +0300 Subject: [PATCH] CI: Set linter --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bd93e9..7e816a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ on: workflow_dispatch: jobs: - ci: + install: runs-on: ubuntu-latest steps: - name: Checkout @@ -25,4 +25,16 @@ jobs: run: go mod tidy - name: App Version run: go run main.go version - \ No newline at end of file + lint: + runs-on: ubuntu-latest + steps: + - run: go version + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.22.0' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: v1.54 \ No newline at end of file