Skip to content

Commit

Permalink
ci: test on go define in go.mod
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 fd1729a commit 2a8f3c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on: [push, pull_request]

jobs:
build:
strategy:
matrix:
go_version: ["1.19", stable]
uses: charmbracelet/meta/.github/workflows/build.yml@main
with:
go_version: ${{ mastrix.go_version }}

snapshot:
uses: charmbracelet/meta/.github/workflows/snapshot.yml@main
Expand All @@ -15,14 +20,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1

go-version: stable
- name: Test
run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
file: ./coverage.txt

0 comments on commit 2a8f3c9

Please sign in to comment.