Skip to content

Commit

Permalink
feat(ci): test with/out cgo
Browse files Browse the repository at this point in the history
Format yaml using prettier
  • Loading branch information
aymanbagabas committed Jul 5, 2023
1 parent e4f9f7a commit cc24411
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -9,14 +9,17 @@ jobs:
name: Test
strategy:
matrix:
go: ['1.20', '1.19', '1.18', '1.17']
go: ["1.20", "1.19", "1.18", "1.17"]
platform: [ubuntu-latest] # can not run in windows OS
cgo: ["0", "1"]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: Test
run: go test -v -cover .
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: Test
env:
CGO_ENABLED: ${{ matrix.cgo }}
run: go test -v -cover .

0 comments on commit cc24411

Please sign in to comment.