Skip to content

feat: normalise dashboard connection url #1118

feat: normalise dashboard connection url

feat: normalise dashboard connection url #1118

name: "Enforcing go mod tidy in PRs Workflow"
on: [pull_request]
jobs:
go_mod_tidy_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up go
uses: actions/setup-go@v5
- name: Create a new git repository
run: rm -rf .git && git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- name: Go mod tidy for root project
run: go mod tidy
- name: Go mod tidy for example apps
working-directory: ./examples
run: go mod tidy
- name: Go mod tidy for test server
working-directory: ./test/test-server
run: go mod tidy
- name: git status
run: git status
- name: Check for file changes by go mod tidy
run: git status | grep -q 'nothing to commit, working tree clean' && exit 0 || exit 1