Skip to content

Commit

Permalink
Configure lint CI and refresh the build/test steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
kordianbruck committed Sep 22, 2024
1 parent f242220 commit de14e8f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/go.yml → .github/workflows/go-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@ name: Go

on:
push:
branches: [ master ]
branches:
- main
- master
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
cache-dependency-path: './go.sum'
go-version-file: './go.mod'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -v ./...
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
branches:
- main
- master
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60

0 comments on commit de14e8f

Please sign in to comment.