diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 28e69ef7..c50cfcdb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -200,6 +200,15 @@ updates: commit-message: prefix: "chore" include: "scope" + - package-ecosystem: "gomod" + directory: "/vt" + schedule: + interval: "daily" + labels: + - "dependencies" + commit-message: + prefix: "chore" + include: "scope" - package-ecosystem: "gomod" directory: "/wcwidth" schedule: diff --git a/.github/workflows/vt.yml b/.github/workflows/vt.yml new file mode 100644 index 00000000..915c8d7c --- /dev/null +++ b/.github/workflows/vt.yml @@ -0,0 +1,48 @@ +# auto-generated by scripts/builds. DO NOT EDIT. +name: vt + +on: + push: + branches: + - main + pull_request: + paths: + - vt/** + - .github/workflows/vt.yml + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + defaults: + run: + working-directory: ./vt + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: ./vt/go.mod + cache: true + cache-dependency-path: ./vt/go.sum + - run: go build -v ./... + - run: go test -race -v ./... + dependabot: + needs: [build] + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} + steps: + - id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - run: | + gh pr review --approve "$PR_URL" + gh pr merge --squash --auto "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.golangci-soft.yml b/.golangci-soft.yml index 55255e59..c7c2bdbf 100644 --- a/.golangci-soft.yml +++ b/.golangci-soft.yml @@ -20,7 +20,7 @@ linters: - goconst - godot - godox - - gomnd + - mnd - gomoddirectives - goprintffuncname # - ifshort