Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
add CGO_ENABLED=0 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Sep 20, 2021
1 parent e5ba2aa commit 81d9847
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,34 @@ on:
branches: [ main ]

jobs:
build:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: go build -v ./...

- name: Test
run: go test -v -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.out ./...

- name: Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- cgo: "0"
- cgo: "1"
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Test
env:
CGO_ENABLED: ${{ matrix.cgo }}
run: go test -v ./...
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
Expand Down

0 comments on commit 81d9847

Please sign in to comment.