From b00437ae932b6dfd9b83ba99a0631dca1256201f Mon Sep 17 00:00:00 2001 From: Andrey Kataev Date: Tue, 30 Sep 2025 02:05:41 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D0=BE=D0=BD=D0=B0=D1=80=D0=BA=D1=83=D0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint-and-test.yml | 19 +++++++++++++++++++ .gitignore | 2 +- .vscode/launch.json | 13 ------------- 3 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/lint-and-test.yml delete mode 100644 .vscode/launch.json diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml new file mode 100644 index 0000000..79984a2 --- /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@main + with: + go-version: '1.24.4' + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file 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 From 78b1be01d52610e46dd05687cf75e524db9ee22f Mon Sep 17 00:00:00 2001 From: Andrey Kataev Date: Tue, 30 Sep 2025 02:06:11 +0300 Subject: [PATCH 2/3] Update lint-and-test.yml --- .github/workflows/lint-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 79984a2..cc4f9ea 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -16,4 +16,4 @@ jobs: with: go-version: '1.24.4' secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 2b8ccf68c9ae5a47b82fb9c9300181e8552d1b74 Mon Sep 17 00:00:00 2001 From: Andrey Kataev Date: Tue, 30 Sep 2025 14:48:11 +0300 Subject: [PATCH 3/3] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E=20=D0=B2=D0=BE=D1=80?= =?UTF-8?q?=D0=BA=D1=84=D0=BB=D0=BE=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index cc4f9ea..cf889f6 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -12,7 +12,7 @@ permissions: jobs: lint-and-test: - uses: esclient/tools/.github/workflows/lint-and-test-go.yml@main + uses: esclient/tools/.github/workflows/lint-and-test-go.yml@v1.0.0 with: go-version: '1.24.4' secrets: