diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..87d4349 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.64 + args: --timeout=5m + diff --git a/.gitignore b/.gitignore index aaadf73..61adaa3 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ go.work.sum # Editor/IDE # .idea/ # .vscode/ + +gogit \ No newline at end of file diff --git a/go.mod b/go.mod index 9e6e572..82f6afb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bakayu/gogit.git +module github.com/bakayu/gogit go 1.23