Skip to content

Ci/commitlint

Ci/commitlint #3

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18'
check-latest: true
- run: make test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage
coverageLocations: ${{github.workspace}}/c.out:gocov
prefix: github.com/commander-cli/cmd