From db0a947ddbfbb0ba93e59808256b12e551941d3c Mon Sep 17 00:00:00 2001 From: Aleksandr Tolstikhin Date: Sat, 7 Dec 2024 00:50:59 +0700 Subject: [PATCH 1/4] New yml --- .gitea/workflows/job_lint.yml | 26 +++++++++++ .gitea/workflows/job_test.yml | 26 +++++++++++ .gitea/workflows/pipeline.yml | 82 ++++++++++++++++++----------------- 3 files changed, 94 insertions(+), 40 deletions(-) create mode 100644 .gitea/workflows/job_lint.yml create mode 100644 .gitea/workflows/job_test.yml diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml new file mode 100644 index 00000000..809e6c31 --- /dev/null +++ b/.gitea/workflows/job_lint.yml @@ -0,0 +1,26 @@ +name: lint + +on: + pull_request: + branches: + - master + - v3 + - v4 + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: setup-go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: checkout + uses: actions/checkout@v3 + - name: deps + run: go get -v -d ./... + - name: lint + uses: https://github.com/golangci/golangci-lint-action@v6 + with: + version: v1.62.2 diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml new file mode 100644 index 00000000..f484b617 --- /dev/null +++ b/.gitea/workflows/job_test.yml @@ -0,0 +1,26 @@ +name: test + +on: + pull_request: + branches: + - master + - v3 + - v4 + +jobs: + test: + name: test + runs-on: ubuntu-latest + steps: + - name: setup-go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: checkout + uses: actions/checkout@v3 + - name: deps + run: go get -v -d ./... + - name: test + env: + INTEGRATION_TESTS: yes + run: go test -mod readonly -v ./... diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 31f97f3b..8ae41fd6 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -1,40 +1,42 @@ -name: pipeline -on: - pull_request: - branches: - - master - - v3 - - v4 -jobs: - lint: - name: lint - runs-on: ubuntu-latest - steps: - - name: setup-go - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - name: checkout - uses: actions/checkout@v3 - - name: deps - run: go get -v -d ./... - - name: lint - uses: https://github.com/golangci/golangci-lint-action@v6 - with: - version: v1.62.2 - test: - name: test - runs-on: ubuntu-latest - steps: - - name: setup-go - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - name: checkout - uses: actions/checkout@v3 - - name: deps - run: go get -v -d ./... - - name: test - env: - INTEGRATION_TESTS: yes - run: go test -mod readonly -v ./... +# name: pipeline + +# on: +# pull_request: +# branches: +# - master +# - v3 +# - v4 + +# jobs: +# lint: +# name: lint +# runs-on: ubuntu-latest +# steps: +# - name: setup-go +# uses: actions/setup-go@v5 +# with: +# go-version: 'stable' +# - name: checkout +# uses: actions/checkout@v3 +# - name: deps +# run: go get -v -d ./... +# - name: lint +# uses: https://github.com/golangci/golangci-lint-action@v6 +# with: +# version: v1.62.2 +# test: +# name: test +# runs-on: ubuntu-latest +# steps: +# - name: setup-go +# uses: actions/setup-go@v5 +# with: +# go-version: 'stable' +# - name: checkout +# uses: actions/checkout@v3 +# - name: deps +# run: go get -v -d ./... +# - name: test +# env: +# INTEGRATION_TESTS: yes +# run: go test -mod readonly -v ./... -- 2.45.2 From 61dfa6a94352f35477536e9376fe71645b84942b Mon Sep 17 00:00:00 2001 From: Aleksandr Tolstikhin Date: Sat, 7 Dec 2024 01:05:29 +0700 Subject: [PATCH 2/4] Upd yml --- .gitea/workflows/job_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index f484b617..8ea0e79c 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -1,6 +1,7 @@ name: test on: + push: pull_request: branches: - master -- 2.45.2 From fed7af4ad8210d0ff64ea229e8930b137dd2208d Mon Sep 17 00:00:00 2001 From: Aleksandr Tolstikhin Date: Sat, 7 Dec 2024 01:13:39 +0700 Subject: [PATCH 3/4] Upd condition and del pipeline yml --- .gitea/workflows/job_lint.yml | 1 + .gitea/workflows/job_test.yml | 1 + .gitea/workflows/pipeline.yml | 42 ----------------------------------- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 .gitea/workflows/pipeline.yml diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index 809e6c31..aa45e23d 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -2,6 +2,7 @@ name: lint on: pull_request: + types: [opened, reopened, closed] branches: - master - v3 diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 8ea0e79c..550f2bda 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -3,6 +3,7 @@ name: test on: push: pull_request: + types: [opened, reopened, closed] branches: - master - v3 diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml deleted file mode 100644 index 8ae41fd6..00000000 --- a/.gitea/workflows/pipeline.yml +++ /dev/null @@ -1,42 +0,0 @@ -# name: pipeline - -# on: -# pull_request: -# branches: -# - master -# - v3 -# - v4 - -# jobs: -# lint: -# name: lint -# runs-on: ubuntu-latest -# steps: -# - name: setup-go -# uses: actions/setup-go@v5 -# with: -# go-version: 'stable' -# - name: checkout -# uses: actions/checkout@v3 -# - name: deps -# run: go get -v -d ./... -# - name: lint -# uses: https://github.com/golangci/golangci-lint-action@v6 -# with: -# version: v1.62.2 -# test: -# name: test -# runs-on: ubuntu-latest -# steps: -# - name: setup-go -# uses: actions/setup-go@v5 -# with: -# go-version: 'stable' -# - name: checkout -# uses: actions/checkout@v3 -# - name: deps -# run: go get -v -d ./... -# - name: test -# env: -# INTEGRATION_TESTS: yes -# run: go test -mod readonly -v ./... -- 2.45.2 From d3931886effaff9b215b1333ed18a20d6b91bd75 Mon Sep 17 00:00:00 2001 From: Aleksandr Tolstikhin Date: Sat, 7 Dec 2024 01:15:10 +0700 Subject: [PATCH 4/4] Fix --- .gitea/workflows/job_test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 550f2bda..5a21158c 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -2,6 +2,10 @@ name: test on: push: + branches: + - master + - v3 + - v4 pull_request: types: [opened, reopened, closed] branches: -- 2.45.2