Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gotest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down