Skip to content

Commit 9116e0c

Browse files
Merge pull request #10 from c3pm-labs/cli/add-ci
feat(cli): add CI
2 parents 29a6518 + 81f9135 commit 9116e0c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/c3pm.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: c3pm CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup Go
12+
uses: actions/setup-go@v2.0.3
13+
- name: Build project
14+
working-directory: ./
15+
run: go build
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Setup Go
21+
uses: actions/setup-go@v2.0.3
22+
- name: Test project
23+
working-directory: ./
24+
run: go test ./...
25+
lint:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Lint project
30+
uses: golangci/golangci-lint-action@v2
31+
with:
32+
version: v1.28
33+
args: -E bodyclose -E gofmt
34+
working-directory: ./

0 commit comments

Comments
 (0)