Skip to content

Commit 9f6728a

Browse files
Merge pull request #106 from nextmv-io/develop
Release v0.20.2
2 parents 6d938fc + 23a19c2 commit 9f6728a

36 files changed

+6287
-2
lines changed

.github/workflows/go-build-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ jobs:
88
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
99
RESOURCES: resources
1010
NEXTMV_LIBRARY_PATH: ~/.nextmv/lib
11+
# Use a matrix strategy to test all the modules simultaneously.
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
MOD_PATH:
16+
[./, ./route/google, ./route/here, ./route/osrm, ./route/routingkit]
1117
steps:
1218
# Installs dependencies.
1319
- name: install dependencies linux
@@ -79,6 +85,8 @@ jobs:
7985

8086
- name: go build
8187
run: go build -v ./...
88+
working-directory: ${{ matrix.MOD_PATH }}
8289

8390
- name: go test
8491
run: NEXTMV_LIBRARY_PATH=${{ env.NEXTMV_LIBRARY_PATH }} NEXTMV_TOKEN=${{ secrets.NEXTMV_TOKEN }} go test ./...
92+
working-directory: ${{ matrix.MOD_PATH }}

.github/workflows/go-lint.yml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on: [push]
33
jobs:
44
sdk-go-lint:
55
runs-on: ubuntu-latest
6+
# Use a matrix strategy to test all the modules simultaneously.
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
MOD_PATH:
11+
[./, ./route/google, ./route/here, ./route/osrm, ./route/routingkit]
612
steps:
713
- name: set up go
814
uses: actions/setup-go@v3
@@ -17,3 +23,4 @@ jobs:
1723
uses: golangci/golangci-lint-action@v3
1824
with:
1925
version: v1.49.0
26+
working-directory: ${{ matrix.MOD_PATH }}

.golangci.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ linters-settings:
1212
gomodguard:
1313
allowed:
1414
modules:
15-
-
15+
- github.com/nextmv-io/sdk
16+
- github.com/dgraph-io/ristretto
17+
- github.com/golang/mock
18+
- github.com/google/go-cmp
19+
- github.com/hashicorp/golang-lru
20+
- github.com/nextmv-io/go-routingkit
21+
- github.com/twpayne/go-polyline
22+
- googlemaps.github.io/maps
1623
# Functions cannot exceed this cyclomatic complexity.
1724
gocyclo:
1825
min-complexity: 10
@@ -148,3 +155,24 @@ issues:
148155
- path: route/example_router_test\.go
149156
linters:
150157
- dupl
158+
159+
# Complexity in UnmarshalJSON is high due to multiple cases, fine for now.
160+
- path: route/load\.go
161+
linters:
162+
- gocyclo
163+
text: ByIndexLoader
164+
165+
# Tag should be 'measure' in both cases ByPoint and ByIndex
166+
- path: route/load\.go
167+
linters:
168+
- tagliatelle
169+
text: measure
170+
171+
# Please note that other Go modules have issues that are ignored but are
172+
# not listed here. The reason is that linting must be done standing on the
173+
# Go module and excluding issues here uses relative paths. That means that
174+
# the relative paths from this file start from the root of sdk but for
175+
# other modules the relative path start from that module. For that reason,
176+
# linting is ignored by using the following syntax on a line: //nolint. If
177+
# you look for uses of //nolint you will find the other linting issues
178+
# being excluided.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.20.1
1+
v0.20.2

0 commit comments

Comments
 (0)