Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into vt-teatest
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 14, 2024
2 parents 54292aa + 0af7d04 commit 29d4c08
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/vt.yml
Original file line number Diff line number Diff line change
@@ -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}}
2 changes: 1 addition & 1 deletion .golangci-soft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ linters:
- goconst
- godot
- godox
- gomnd
- mnd
- gomoddirectives
- goprintffuncname
# - ifshort
Expand Down

0 comments on commit 29d4c08

Please sign in to comment.