bump version, add dependabot

This commit is contained in:
2024-09-25 19:08:20 +02:00
parent c2883384fe
commit f14a30b528
3 changed files with 19 additions and 9 deletions

10
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

View File

@@ -4,19 +4,19 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
version: [1.22] version: [1.22.1]
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
name: Build name: Build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Set up Go - name: Set up Go ${{ matrix.os }}
uses: actions/setup-go@v3 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.version }} go-version: '${{ matrix.version }}'
id: go id: go
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: build - name: build
run: go build run: go build
@@ -28,9 +28,9 @@ jobs:
name: lint name: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v5
with: with:
go-version: 1.22 go-version: 1.22
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v6

View File

@@ -124,7 +124,7 @@ var Templates = map[string]string{
} }
const ( const (
VERSION string = "0.0.3" VERSION string = "0.0.4"
DefaultCount int = 160 // number of words to generate if -c is omitted DefaultCount int = 160 // number of words to generate if -c is omitted
DefaultColumns int = 10 // number of columns to print DefaultColumns int = 10 // number of columns to print
MaxWidth int = 72 // max width of output, adjusts columns MaxWidth int = 72 // max width of output, adjusts columns