Skip to content

Commit 0d4fd9a

Browse files
authored
Merge pull request #7 from newcloudtechnologies/MLN-1697
Setting up github actions
2 parents a0fd53d + 70bf6ce commit 0d4fd9a

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/memlimiter.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@ on:
88

99
jobs:
1010
MemLimiter:
11-
runs-on: fedora-latest
11+
runs-on: ubuntu-latest
1212
steps:
13-
- name: Hello World!
14-
run: echo "HW!"
15-
16-
- name: Set up Go
17-
uses: actions/setup-go@v2
18-
with:
19-
go-version: 1.18
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-go@v3
2015

2116
- name: Verify dependencies
2217
run: go mod verify
@@ -28,4 +23,7 @@ jobs:
2823
run: make test
2924

3025
- name: Lint
31-
run: make lint
26+
uses: golangci/golangci-lint-action@v3
27+
with:
28+
version: v1.42.1
29+
args: -c .golangci.yml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
build:
22
go build ./...
3-
pushd ./test/allocator && go build . && popd
3+
cd ./test/allocator && go build . && cd -
44

55
test:
66
go test -v -count=1 ./...

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Go Reference](https://pkg.go.dev/badge/github.com/newcloudtechnologies/memlimiter.svg)](https://pkg.go.dev/github.com/newcloudtechnologies/memlimiter)
2+
13
# MemLimiter
24

35
Library that helps to limit memory consumption of your Go service.

test/component_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) New Cloud Technologies, Ltd. 2013-2022.
3+
* Author: Vitaly Isaev <vitaly.isaev@myoffice.team>
4+
* License: https://github.com/newcloudtechnologies/memlimiter/blob/master/LICENSE
5+
*/
6+
7+
package test

0 commit comments

Comments
 (0)