Skip to content

Commit

Permalink
Tweak CI workflow to test against newer go versions and remove old tr…
Browse files Browse the repository at this point in the history
…avis config file
  • Loading branch information
rowanseymour committed Aug 26, 2021
1 parent 071a364 commit 4e1a79c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 38 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: Test
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
go-version: ['1.15.x', '1.16.x']
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -42,20 +42,13 @@ jobs:
with:
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v1
if: ${{ !contains(github.ref, '-') }}
with:
version: v0.147.2
args: release --rm-dist
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v1
if: contains(github.ref, '-')
with:
version: v0.147.2
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
Expand Down
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
phonenumbers
==============

# phonenumbers
[![Build Status](https://github.com/nyaruka/phonenumbers/workflows/CI/badge.svg)](https://github.com/nyaruka/phonenumbers/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/nyaruka/phonenumbers/branch/main/graph/badge.svg)](https://codecov.io/gh/nyaruka/phonenumbers)
[![GoDoc](https://godoc.org/github.com/nyaruka/phonenumbers?status.svg)](https://godoc.org/github.com/nyaruka/phonenumbers)
Expand Down Expand Up @@ -44,6 +42,6 @@ It will rebuild the following files:
`prefix_to_timezone_bin.go` - contains the information needed to map a phone number prefix to a city or region

```bash
% cd cmd/buildmetadata && go install . && cd -
% go install github.com/nyaruka/phonenumbers/cmd/buildmetadata
% $GOPATH/bin/buildmetadata
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/nyaruka/phonenumbers

require github.com/golang/protobuf v1.3.2

go 1.13
go 1.16

0 comments on commit 4e1a79c

Please sign in to comment.