From ed34ea5c902153c8e09dcd08c7e8878d479ec0ab Mon Sep 17 00:00:00 2001 From: ermirizio Date: Tue, 9 Sep 2025 17:53:01 -0300 Subject: [PATCH 1/2] remove template as it does not exists anymore --- .github/workflows/golangci.yaml | 60 ++++++++++++++++----------------- .github/workflows/gotest.yaml | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/golangci.yaml b/.github/workflows/golangci.yaml index fd8b7f6b..590d6132 100644 --- a/.github/workflows/golangci.yaml +++ b/.github/workflows/golangci.yaml @@ -38,36 +38,36 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - - name: Download template - run: | - curl 'https://raw.githubusercontent.com/TykTechnologies/github-actions/main/.github/workflows/.golangci.tmpl.yaml' -o .golangci.yaml - - name: Render template - id: render_template - uses: chuhlomin/render-template@v1.7 - with: - template: .golangci.yaml - result_path: .golangci.yaml - vars: | - main_branch: ${{ inputs.main_branch }} - goimports: '' - build_tags: [] - skip_dirs: [] - go_version: ${{ inputs.go }} - - name: Apply template - run: | - cp .golangci.yaml /tmp/.golangci.yaml - if [[ `git status --porcelain` ]]; then - export ref=$(git rev-parse HEAD) - git checkout ${{ inputs.main_branch }} - git pull --rebase - git config --global user.name 'Bender' - git config --global user.email 'bender@users.noreply.github.com' - git add -A - git commit -a -m 'Update Golangci config' - git push origin ${{ inputs.main_branch }} - git checkout $ref - fi - cp /tmp/.golangci.yaml .golangci.yaml + # - name: Download template + # run: | + # curl 'https://raw.githubusercontent.com/TykTechnologies/github-actions/main/.github/workflows/.golangci.tmpl.yaml' -o .golangci.yaml + # - name: Render template + # id: render_template + # uses: chuhlomin/render-template@v1.7 + # with: + # template: .golangci.yaml + # result_path: .golangci.yaml + # vars: | + # main_branch: ${{ inputs.main_branch }} + # goimports: '' + # build_tags: [] + # skip_dirs: [] + # go_version: ${{ inputs.go }} + # - name: Apply template + # run: | + # cp .golangci.yaml /tmp/.golangci.yaml + # if [[ `git status --porcelain` ]]; then + # export ref=$(git rev-parse HEAD) + # git checkout ${{ inputs.main_branch }} + # git pull --rebase + # git config --global user.name 'Bender' + # git config --global user.email 'bender@users.noreply.github.com' + # git add -A + # git commit -a -m 'Update Golangci config' + # git push origin ${{ inputs.main_branch }} + # git checkout $ref + # fi + # cp /tmp/.golangci.yaml .golangci.yaml - uses: actions/setup-go@v3 with: go-version: ${{ inputs.go }} diff --git a/.github/workflows/gotest.yaml b/.github/workflows/gotest.yaml index 95b090e0..96adb823 100644 --- a/.github/workflows/gotest.yaml +++ b/.github/workflows/gotest.yaml @@ -46,7 +46,7 @@ jobs: - name: Set up test tooling run: | - go install gotest.tools/gotestsum@latest + go install gotest.tools/gotestsum@v1.11.0 - name: Go Test id: test From d182342db2bd4cecc2f48827319c2e79b32301ef Mon Sep 17 00:00:00 2001 From: ermirizio Date: Tue, 9 Sep 2025 17:56:11 -0300 Subject: [PATCH 2/2] Delete file permanently --- .github/workflows/golangci.yaml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/golangci.yaml b/.github/workflows/golangci.yaml index 590d6132..fa666f1b 100644 --- a/.github/workflows/golangci.yaml +++ b/.github/workflows/golangci.yaml @@ -38,36 +38,6 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - # - name: Download template - # run: | - # curl 'https://raw.githubusercontent.com/TykTechnologies/github-actions/main/.github/workflows/.golangci.tmpl.yaml' -o .golangci.yaml - # - name: Render template - # id: render_template - # uses: chuhlomin/render-template@v1.7 - # with: - # template: .golangci.yaml - # result_path: .golangci.yaml - # vars: | - # main_branch: ${{ inputs.main_branch }} - # goimports: '' - # build_tags: [] - # skip_dirs: [] - # go_version: ${{ inputs.go }} - # - name: Apply template - # run: | - # cp .golangci.yaml /tmp/.golangci.yaml - # if [[ `git status --porcelain` ]]; then - # export ref=$(git rev-parse HEAD) - # git checkout ${{ inputs.main_branch }} - # git pull --rebase - # git config --global user.name 'Bender' - # git config --global user.email 'bender@users.noreply.github.com' - # git add -A - # git commit -a -m 'Update Golangci config' - # git push origin ${{ inputs.main_branch }} - # git checkout $ref - # fi - # cp /tmp/.golangci.yaml .golangci.yaml - uses: actions/setup-go@v3 with: go-version: ${{ inputs.go }}