mirror of
https://github.com/jimeh/go-render.git
synced 2026-02-19 11:26:39 +00:00
ci: fix test workflow, enable coverage workflow
This commit is contained in:
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@@ -30,44 +30,40 @@ jobs:
|
|||||||
- name: Check if mods are tidy
|
- name: Check if mods are tidy
|
||||||
run: make check-tidy
|
run: make check-tidy
|
||||||
|
|
||||||
# cov:
|
cov:
|
||||||
# name: Coverage
|
name: Coverage
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
# with:
|
with:
|
||||||
# go-version: "1.20"
|
go-version: "1.20"
|
||||||
# - name: Publish coverage
|
- name: Publish coverage
|
||||||
# uses: paambaati/codeclimate-action@v5.0.0
|
uses: paambaati/codeclimate-action@v5.0.0
|
||||||
# env:
|
env:
|
||||||
# VERBOSE: "true"
|
VERBOSE: "true"
|
||||||
# GOMAXPROCS: 4
|
GOMAXPROCS: 4
|
||||||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
# with:
|
with:
|
||||||
# coverageCommand: make cov
|
coverageCommand: make cov
|
||||||
# prefix: github.com/${{ github.repository }}
|
prefix: github.com/${{ github.repository }}
|
||||||
# coverageLocations: |
|
coverageLocations: |
|
||||||
# ${{ github.workspace }}/coverage.out:gocov
|
${{ github.workspace }}/coverage.out:gocov
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
- macos-latest
|
|
||||||
- windows-latest
|
|
||||||
go_version:
|
go_version:
|
||||||
- "1.20"
|
- "1.20"
|
||||||
- "1.21"
|
- "1.21"
|
||||||
- "1.22"
|
- "1.22"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: ${{ matrix.go_version }}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v -count=1 -race ./...
|
run: go test -v -count=1 -race ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user