-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dusan Borovcanin <[email protected]>
- Loading branch information
1 parent
83ecbaa
commit 22ec243
Showing
7 changed files
with
107 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright (c) Abstract Machines | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Go | ||
on: [push] | ||
jobs: | ||
|
@@ -6,22 +9,25 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.22.5 | ||
- name: Set up Go 1.23.x | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.22.5 | ||
go-version: 1.23.x | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Lint | ||
run: | | ||
export GOBIN=$HOME/go/bin | ||
export PATH=$PATH:$(go env GOBIN) | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOBIN) v1.59.1 | ||
golangci-lint run --no-config --disable-all --enable gosimple --enable govet --enable unused --timeout 3m | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.60.3 | ||
args: --config .golangci.yml | ||
|
||
- name: Test | ||
run: | | ||
go test -v -race -tags test -coverprofile=profile.out -covermode=atomic ./... | ||
- name: Upload coverage | ||
uses: codecov/[email protected] | ||
with: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright (c) Abstract Machines | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
run: | ||
timeout: 3m | ||
|
||
issues: | ||
max-issues-per-linter: 100 | ||
max-same-issues: 100 | ||
|
||
gocritic: | ||
enabled-checks: | ||
- importShadow | ||
- httpNoBody | ||
- paramTypeCombine | ||
- emptyStringTest | ||
- builtinShadow | ||
- exposedSyncMutex | ||
disabled-checks: | ||
- appendAssign | ||
enabled-tags: | ||
- diagnostic | ||
disabled-tags: | ||
- performance | ||
- style | ||
- experimental | ||
- opinionated | ||
misspell: | ||
ignore-words: | ||
- "mosquitto" | ||
stylecheck: | ||
checks: ["-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022"] | ||
goheader: | ||
template: |- | ||
Copyright (c) Abstract Machines | ||
SPDX-License-Identifier: Apache-2.0 | ||
linters: | ||
disable-all: true | ||
enable: | ||
- gocritic | ||
- gosimple | ||
- errcheck | ||
- govet | ||
- unused | ||
- goconst | ||
- godot | ||
- godox | ||
- ineffassign | ||
- misspell | ||
- stylecheck | ||
- whitespace | ||
- gci | ||
- gofmt | ||
- goimports | ||
- loggercheck | ||
- goheader | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- contextcheck | ||
- decorder | ||
- dogsled | ||
- errchkjson | ||
- errname | ||
- copyloopvar | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gofumpt | ||
- goprintffuncname | ||
- importas | ||
- makezero | ||
- mirror | ||
- nakedret | ||
- dupword |
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
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
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
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