Skip to content

Commit dc70a81

Browse files
committed
Setup initial github action
1 parent ca8c476 commit dc70a81

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
platform: [ubuntu-latest, macos-latest, windows-latest]
13+
runs-on: ${{ matrix.platform }}
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-go@v3
18+
with:
19+
go-version: '1.18'
20+
check-latest: true
21+
- run: make test
22+
23+
coverage:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Test & publish code coverage
28+
uses: paambaati/[email protected]
29+
env:
30+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
31+
with:
32+
coverageCommand: make test-coverage
33+
coverageLocations: ${{github.workspace}}/c.out:gocov
34+
prefix: github.com/commander-cli/cmd

0 commit comments

Comments
 (0)