diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml new file mode 100644 index 0000000..cf889f6 --- /dev/null +++ b/.github/workflows/lint-and-test.yml @@ -0,0 +1,19 @@ +name: "lint and test" +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + types: [ opened, synchronize, reopened ] + +permissions: + contents: read + pull-requests: write + +jobs: + lint-and-test: + uses: esclient/tools/.github/workflows/lint-and-test-go.yml@v1.0.0 + with: + go-version: '1.24.4' + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.gitignore b/.gitignore index aaadf73..657f9bf 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,4 @@ go.work.sum # Editor/IDE # .idea/ -# .vscode/ +.vscode/ diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 010cb34..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "name": "Launch API", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceRoot}/cmd/main.go", - "args": [] - } - ] -} \ No newline at end of file