-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOISSUE - Add Continous Integration (#9)
* feat: Add CI Signed-off-by: 1998-felix <[email protected]> * ci: Add linter, dependabot and ci config Signed-off-by: 1998-felix <[email protected]> * ci: refactor config for linter settings Signed-off-by: 1998-felix <[email protected]> * fix: fix failing linter Signed-off-by: 1998-felix <[email protected]> * refactor: clean up variable names Signed-off-by: 1998-felix <[email protected]> * refactor: refactor error definition to inline Signed-off-by: 1998-felix <[email protected]> * refactor: refactor parse code, remove inline errors Signed-off-by: 1998-felix <[email protected]> * refactor: refactor parseCode for error handling Signed-off-by: 1998-felix <[email protected]> --------- Signed-off-by: 1998-felix <[email protected]>
- Loading branch information
1 parent
e0e6275
commit aef7d93
Showing
5 changed files
with
213 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) Abstract Machines | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: ".github/workflows" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
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,36 @@ | ||
# Copyright (c) Abstract Machines | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint-and-build: | ||
name: Lint and Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22.x | ||
cache-dependency-path: "go.sum" | ||
|
||
- name: Check linting | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: v1.56.2 | ||
|
||
- name: Build Binaries | ||
run: | | ||
make all -j $(nproc) |
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: | ||
concurrency: 4 | ||
timeout: 1m | ||
|
||
linters-settings: | ||
importas: | ||
no-unaliased: true | ||
no-extra-aliases: false | ||
gocritic: | ||
enabled-checks: | ||
- importShadow | ||
- httpNoBody | ||
- paramTypeCombine | ||
- emptyStringTest | ||
- builtinShadow | ||
- exposedSyncMutex | ||
disabled-checks: | ||
- appendAssign | ||
enabled-tags: | ||
- diagnostic | ||
disabled-tags: | ||
- performance | ||
- style | ||
- experimental | ||
- opinionated | ||
stylecheck: | ||
checks: ["-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022"] | ||
goheader: | ||
template: |- | ||
Copyright (c) Abstract Machines | ||
SPDX-License-Identifier: Apache-2.0 | ||
linters: | ||
disable-all: true | ||
fast: 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 | ||
- execinquery | ||
- exportloopref | ||
- 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