Skip to content

Commit

Permalink
chore: merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
s4kh committed Oct 15, 2024
1 parent 355e782 commit 3cefb3b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,37 @@ on:
- main
pull_request:

permissions:
contents: read

env:
GOLANGCI_LINT_VERSION: v1.61.0

jobs:
build-lint-test:
name: CI
lint:
name: Lint Go
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: ${{env.GOLANGCI_LINT_VERSION}}
args: |
"./..." --timeout=7m
skip-cache: true
install-mode: binary

build-test:
name: Build and Test
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/go-lint.yml

This file was deleted.

0 comments on commit 3cefb3b

Please sign in to comment.