-
Notifications
You must be signed in to change notification settings - Fork 22
35 lines (31 loc) · 814 Bytes
/
test.yaml
File metadata and controls
35 lines (31 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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