Skip to content

Commit

Permalink
Use github action
Browse files Browse the repository at this point in the history
  • Loading branch information
RashadAnsari committed Apr 14, 2023
1 parent c3bec2d commit 251eae8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:

build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.30.0
- name: Lint
run: make lint
- name: Test
run: make test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Geo Lookups

[![Build Status][1]][2]
[![codecov][3]][4]
[![MIT Licence][5]][6]
[![Build](https://github.com/4lie/lookups/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/4lie/lookups/actions/workflows/build.yml)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/4lie/lookups)](https://pkg.go.dev/github.com/4lie/lookups)

## Introduction
Expand All @@ -18,13 +16,6 @@ It uses Google's S2 Library for indexing and it's super fast :rocket:.
go get github.com/4lie/lookups
```

[1]: https://img.shields.io/travis/4lie/lookups?logo=travis&style=flat-square
[2]: https://travis-ci.org/4lie/lookups
[3]: https://img.shields.io/codecov/c/gh/4lie/lookups?logo=codecov&style=flat-square
[4]: https://codecov.io/gh/4lie/lookups
[5]: https://img.shields.io/github/license/4lie/lookups?style=flat-square
[6]: https://opensource.org/licenses/mit-license.php

## Examples

`lookups_test.go` contains several useful examples. You can check visualizations of them here.
Expand Down

0 comments on commit 251eae8

Please sign in to comment.