Skip to content

Commit 9e5c04e

Browse files
committed
Adding github ci workflow
1 parent 3d47de5 commit 9e5c04e

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

.github/workflow.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on: [pull_request]
2+
name: Golang CI
3+
jobs:
4+
checks:
5+
strategy:
6+
matrix:
7+
go-version: [ 1.24.x ]
8+
os: [ ubuntu-latest ]
9+
name: run
10+
runs-on: ${{matrix.os}}
11+
steps:
12+
- name: checkout master
13+
uses: actions/checkout@master
14+
15+
- name: checking makefile
16+
run: cat -e -t -v Makefile
17+
18+
- name: Running process quality tests
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
# args: make run-pipeline
23+
24+
- run: make run-pipeline

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
.PHONY: test build clean examples install
44

5+
run-pipeline:
6+
@echo ******RUNNING BUILD******
7+
go build
8+
@echo ******MAKING SURE LINT IS CORRECT******
9+
# go get -u golang.org/x/lint/golint
10+
# golint -set_exit_status api/... iplocation/... utils/... shieldio/... ./
11+
@echo ******STARTING TESTS******
12+
go test -gcflags="all=-l -N" -v ./...
13+
@echo ******DONE******
14+
515
# Run tests
616
test:
717
go test -v ./...

go.mod

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module github.com/ericbrisrubio/messages-worker-sdk
22

33
go 1.24
4-
5-
require (
6-
github.com/google/uuid v1.3.0
7-
)
8-

go.sum

Whitespace-only changes.

0 commit comments

Comments
 (0)