Skip to content

Commit

Permalink
feat: min go version is 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Feb 1, 2024
1 parent 34c5691 commit 24a61db
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1,815 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
name: Build

on:
push:
pull_request:
on: [push, pull_request]

jobs:
build:
strategy:
matrix:
go-version: [~1.17, ^1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- run: go build -v ./...
- run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
- uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
go_version: ["1.19", stable]
uses: charmbracelet/meta/.github/workflows/build.yml@main
with:
go_version: ${{ matrix.go_version }}

snapshot:
uses: charmbracelet/meta/.github/workflows/snapshot.yml@main
secrets:
goreleaser_key: ${{ secrets.GORELEASER_KEY }}

coverage:
uses: charmbracelet/meta/.github/workflows/coverage.yml@main
2 changes: 1 addition & 1 deletion _examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ require (
github.com/charmbracelet/promwish v0.5.0
github.com/charmbracelet/ssh v0.0.0-20221117183211-483d43d97103
github.com/charmbracelet/wish v1.2.0
github.com/prometheus/client_golang v1.18.0
)

require (
Expand All @@ -30,7 +31,6 @@ require (
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/charmbracelet/promwish

go 1.17
go 1.19

require (
github.com/charmbracelet/log v0.3.1
Expand Down
Loading

0 comments on commit 24a61db

Please sign in to comment.