Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.15.3'

- name: Install dependencies
run: |
go version
go get -u golang.org/x/lint/golint

- name: Run build
run: go build .

- name: Run vet & lint
run: |
go vet .
golint .

- name: Run tests
run: go test -v -coverprofile=profile.cov ./...

- name: codecov
uses: codecov/codecov-action@v1
with:
file: ./profile.cov
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
osm [![Build Status](https://travis-ci.org/paulmach/osm.svg?branch=master)](https://travis-ci.org/paulmach/osm) [![Go Report Card](https://goreportcard.com/badge/github.com/paulmach/osm)](https://goreportcard.com/report/github.com/paulmach/osm) [![Godoc Reference](https://godoc.org/github.com/paulmach/osm?status.svg)](https://godoc.org/github.com/paulmach/osm)
osm [![CI](https://github.com/paulmach/osm/workflows/CI/badge.svg)](https://github.com/paulmach/osm/actions?query=workflow%3ACI+event%3Apush) [![Go Report Card](https://goreportcard.com/badge/github.com/paulmach/osm)](https://goreportcard.com/report/github.com/paulmach/osm) [![Godoc Reference](https://godoc.org/github.com/paulmach/osm?status.svg)](https://godoc.org/github.com/paulmach/osm)
=====

This package is a general purpose library for reading, writing and working
Expand Down
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
coverage:
status:
project: off
patch:
default:
threshold: 50%

precision: 2
round: down
range: "70...90"

comment: false
2 changes: 1 addition & 1 deletion osmapi/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
osm/osmapi [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/osmapi?status.png)](https://godoc.org/github.com/paulmach/osm/osmapi)
osm/osmapi [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/osmapi?status.svg)](https://godoc.org/github.com/paulmach/osm/osmapi)
==========

Package osmapi provides an interface to the [OSM v0.6 API](https://wiki.openstreetmap.org/wiki/API_v0.6).
Expand Down
2 changes: 1 addition & 1 deletion osmgeojson/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
osm/osmgeojson [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/osmgeojson?status.png)](https://godoc.org/github.com/paulmach/osm/osmgeojson)
osm/osmgeojson [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/osmgeojson?status.svg)](https://godoc.org/github.com/paulmach/osm/osmgeojson)
==============

Package `osmgeojson` converts OSM data to GeoJSON. It is a **full** port of the
Expand Down
2 changes: 1 addition & 1 deletion replication/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
osm/replication [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/replication?status.png)](https://godoc.org/github.com/paulmach/osm/replication)
osm/replication [![Godoc Reference](https://godoc.org/github.com/paulmach/osm/replication?status.svg)](https://godoc.org/github.com/paulmach/osm/replication)
===============

Package `replication` handles fetching the Minute, Hour, Day and Changeset replication
Expand Down