Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 051a3c5

Browse files
author
Max Kuznetsov
authoredAug 24, 2023
Update nakama-common to v1.28.1 and add GH lint workflow (#8)
1 parent 5377951 commit 051a3c5

File tree

5 files changed

+46
-9
lines changed

5 files changed

+46
-9
lines changed
 

‎.github/workflows/golangci-lint.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: golangci-lint
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: read
9+
10+
jobs:
11+
golangci:
12+
name: lint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-go@v4
17+
with:
18+
go-version: "stable"
19+
cache: false
20+
- name: golangci-lint
21+
uses: golangci/golangci-lint-action@v3
22+
with:
23+
version: v1.54
24+
only-new-issues: true
25+
args: --timeout=10m

‎.golangci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
run:
2+
# Enables skipping of directories:
3+
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
4+
skip-dirs-use-default: true
5+
skip-dirs:
6+
- internal/gopher-lua
7+
- internal/cronexpr
8+
9+
linters:
10+
enable:
11+
- gofmt
12+
13+
linters-settings:
14+
gofmt:
15+
simplify: false

‎CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
66
:warning: This server code is versioned separately to the download of the [Hiro game framework](https://heroiclabs.com/hiro/). :warning:
77

88
## [Unreleased]
9-
9+
### Changed
10+
- Pin dependencies to compatible versions of Nakama common at v1.28.1.
1011

1112
## [1.1.0] - 2023-08-23
1213
### Added

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/heroiclabs/hiro
33
go 1.20
44

55
require (
6-
github.com/heroiclabs/nakama-common v1.28.0
6+
github.com/heroiclabs/nakama-common v1.28.1
77
google.golang.org/protobuf v1.31.0
88
)

‎go.sum

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
22
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
33
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4-
github.com/heroiclabs/nakama-common v1.27.0 h1:f1MT78rq7R6+rc8l48LtYvFfxyrLvQ426N96su7jBXA=
5-
github.com/heroiclabs/nakama-common v1.27.0/go.mod h1:/znXrt+yd+i7WHvizD3SNeA4tTLl9PvVckHafUnLAi0=
6-
github.com/heroiclabs/nakama-common v1.28.0/go.mod h1:Os8XeXGvHAap/p6M/8fQ3gle4eEXDGRQmoRNcPQTjXs=
4+
github.com/heroiclabs/nakama-common v1.28.1 h1:GOH8r27NBSdiBf7xjy2R/Ov7CSr9zp4DVJt9Y2LIbqg=
5+
github.com/heroiclabs/nakama-common v1.28.1/go.mod h1:Os8XeXGvHAap/p6M/8fQ3gle4eEXDGRQmoRNcPQTjXs=
76
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
87
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
98
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
10-
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
11-
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
12-
google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
13-
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
9+
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
1410
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=

0 commit comments

Comments
 (0)