Skip to content

Commit

Permalink
Updates for v0.0.2
Browse files Browse the repository at this point in the history
including some CI changes
  • Loading branch information
sams96 committed Feb 17, 2020
1 parent 3f72acd commit c93c108
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 35 deletions.
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
charset = utf-8

[*.go]
charset = utf-8
indent_size = 4
indent_style = tab
max_line_length = 80

[*.md]
charset = utf-8
indent_size = 4
indent_style = tab
max_line_length = 80

[*.{yml,yaml}]
indent_size = 2
indent_style = space
67 changes: 67 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
on:
pull_request:
push:
name: test
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go mod download

- name: Build
run: go build

- name: Test
run: go test

macOS:
runs-on: macos-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go mod download

- name: Build
run: go build

- name: Test
run: go test

windows:
runs-on: windows-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13.x
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go mod download

- name: Build
run: go build

- name: Test
run: go test
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Moved to using s2 Polygons instead of just s2 Loops
- Added 2 letter country codes, continents, regions and subregions to output
- Using github.com/go-test/deep for nicer printing in tests
- Added type `Rgeo` and function `New` to parse the JSON and create the polygons
## [0.0.2] - 2020-02-17

### Added

- 2 letter country codes, continents, regions and subregions to output
- Type `Rgeo` and function `New` to parse the JSON and create the polygons
ahead of time so it doesn't need to be done every time `ReverseGeocode` is
run

### Changed

- Moved to using s2 Polygons instead of just s2 Loops
- Using github.com/go-test/deep for nicer printing in tests

## [0.0.1] - 2020-02-15

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rgeo
# rgeo ![](https://img.shields.io/github/workflow/status/sams96/rgeo/test?style=flat-square) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/sams96/rgeo) ![](https://goreportcard.com/badge/github.com/sams96/rgeo?style=flat-square)

Package rgeo is a fast, simple solution for local reverse geocoding

Expand Down

0 comments on commit c93c108

Please sign in to comment.