diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..37c94c0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependency" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0f48cea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + pull_request: + +jobs: + Go: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: 1.21.5 + + - name: Format and Lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + working-directory: cli + + - name: Build + run: go build diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..b93231c --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,15 @@ +run: + timeout: 3m +issues: + fix: true +linters: + enable: + - dupl + - goconst + - gofmt + - goimports + - misspell + - nilnil + - nosnakecase + - nonamedreturns + - revive \ No newline at end of file