Skip to content

Commit

Permalink
Build with GitHub actions (nicksnyder#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder authored and mmosta committed Nov 30, 2020
1 parent 949485d commit a1dfef9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 26 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build
on:
- push
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.2
- name: Git checkout
uses: actions/checkout@v2
- name: Build and test
working-directory: v2
run: |
go get -t ./...
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v1
build_1_9_7:
runs-on: ubuntu-latest
name: Build with Go 1.9.7
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.9.7
- name: Git checkout
uses: actions/checkout@v2
with:
path: gopath/src/github.com/nicksnyder/go-i18n
- name: Build and test
working-directory: gopath/src/github.com/nicksnyder/go-i18n/v2
env:
GOPATH: ${{ github.workspace }}/gopath
run: |
go get -t ./...
go test -race ./...
22 changes: 0 additions & 22 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 @@
# go-i18n [![Build Status](https://travis-ci.org/nicksnyder/go-i18n.svg?branch=master)](http://travis-ci.org/nicksnyder/go-i18n) [![Report card](https://goreportcard.com/badge/github.com/nicksnyder/go-i18n)](https://goreportcard.com/report/github.com/nicksnyder/go-i18n) [![codecov](https://codecov.io/gh/nicksnyder/go-i18n/branch/master/graph/badge.svg)](https://codecov.io/gh/nicksnyder/go-i18n) [![Sourcegraph](https://sourcegraph.com/github.com/nicksnyder/go-i18n/-/badge.svg)](https://sourcegraph.com/github.com/nicksnyder/go-i18n?badge)
# go-i18n ![Build status](https://github.com/nicksnyder/go-i18n/workflows/Build/badge.svg) [![Report card](https://goreportcard.com/badge/github.com/nicksnyder/go-i18n)](https://goreportcard.com/report/github.com/nicksnyder/go-i18n) [![codecov](https://codecov.io/gh/nicksnyder/go-i18n/branch/master/graph/badge.svg)](https://codecov.io/gh/nicksnyder/go-i18n) [![Sourcegraph](https://sourcegraph.com/github.com/nicksnyder/go-i18n/-/badge.svg)](https://sourcegraph.com/github.com/nicksnyder/go-i18n?badge)

go-i18n is a Go [package](#package-i18n) and a [command](#command-goi18n) that helps you translate Go programs into multiple languages.

Expand Down
4 changes: 2 additions & 2 deletions v2/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/nicksnyder/go-i18n/v2

go 1.9

require (
github.com/BurntSushi/toml v0.3.0
golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284 // indirect
Expand All @@ -9,5 +11,3 @@ require (
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c // indirect
gopkg.in/yaml.v2 v2.2.1
)

go 1.9
2 changes: 1 addition & 1 deletion v2/i18n/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Bundle struct {
matcher language.Matcher
}

// artTag is the language tag used for artifical languages
// artTag is the language tag used for artificial languages
// https://en.wikipedia.org/wiki/Codes_for_constructed_languages
var artTag = language.MustParse("art")

Expand Down

0 comments on commit a1dfef9

Please sign in to comment.