Skip to content

Commit 4caa653

Browse files
authored
Switch to Github Actions (lafriks#71)
* Fix invalid comments
1 parent dc6578b commit 4caa653

File tree

5 files changed

+41
-36
lines changed

5 files changed

+41
-36
lines changed

.drone.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.19
20+
21+
- name: Lint
22+
run: |
23+
go vet -all .
24+
go install github.com/mgechev/revive@latest
25+
revive -config .revive.toml -exclude=./vendor/... ./...
26+
27+
- name: Test
28+
run: go test -v ./...

go.mod

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
module github.com/lafriks/go-tiled
22

3-
go 1.16
3+
go 1.19
44

55
require (
66
github.com/disintegration/imaging v1.6.2
7-
github.com/stretchr/testify v1.8.1
7+
github.com/stretchr/testify v1.8.2
8+
)
9+
10+
require (
11+
github.com/davecgh/go-spew v1.1.1 // indirect
12+
github.com/pmezard/go-difflib v1.0.0 // indirect
13+
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 // indirect
14+
gopkg.in/yaml.v3 v3.0.1 // indirect
815
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS
1010
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
1111
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
1212
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
13-
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
14-
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
13+
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
14+
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
1515
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=
1616
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
1717
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

tmx_map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
// ErrInvalidTileGID error is returned when tile GID is not found
4040
var ErrInvalidTileGID = errors.New("tiled: invalid tile GID")
4141

42-
// Axis
42+
// Axis type
4343
type Axis string
4444

4545
const (
@@ -49,7 +49,7 @@ const (
4949
AxisY Axis = "y"
5050
)
5151

52-
// StaggerAxis is stagger axis index type
52+
// StaggerIndexType is stagger axis index type
5353
type StaggerIndexType string
5454

5555
const (

0 commit comments

Comments
 (0)