Skip to content

Commit

Permalink
ci: test on go define in go.mod (#102)
Browse files Browse the repository at this point in the history
* ci: test on go define in go.mod

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* fix: typo

* fix: reuse workflow

Signed-off-by: Carlos Alexandro Becker <[email protected]>

---------

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 authored Feb 1, 2024
1 parent ddbba0b commit f2cb6b6
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@ on: [push, pull_request]

jobs:
build:
strategy:
matrix:
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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Test
run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m
- uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
uses: charmbracelet/meta/.github/workflows/coverage.yml@main

0 comments on commit f2cb6b6

Please sign in to comment.