Skip to content

Commit

Permalink
use github actions instead of travis
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed Sep 5, 2021
1 parent 1b61728 commit 65f6617
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 15 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go
on: push
env:
GO111MODULE: on
jobs:
build:
runs-on: ubuntu-18.04
name: Go ${{ matrix.go }}
strategy:
matrix:
go:
- '1.9'
- '1.10'
- '1.11'
- '1.12'
- '1.13'
- '1.14'
- '1.15'
- '1.16'
- '1.17'
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
shell: bash
run: |
version=`go version | awk '{print $3}' | awk -F. '{print $2}'`
if [ $version -lt 11 ]; then
go get -v -t -d
fi
- run: go test -race
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ test_*

# log
*.log

# Unix hidden files
.*
14 changes: 0 additions & 14 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 @@
# gconf [![Build Status](https://api.travis-ci.com/xgfone/gconf.svg?branch=master)](https://travis-ci.com/github/xgfone/gconf) [![GoDoc](https://pkg.go.dev/badge/github.com/xgfone/gconf)](https://pkg.go.dev/github.com/xgfone/gconf/v6) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://raw.githubusercontent.com/xgfone/gconf/master/LICENSE)
# Go Config [![Build Status](https://github.com/xgfone/gconf/actions/workflows/go.yml/badge.svg)](https://github.com/xgfone/gconf/actions/workflows/go.yml) [![GoDoc](https://pkg.go.dev/badge/github.com/xgfone/gconf)](https://pkg.go.dev/github.com/xgfone/gconf/v6) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://raw.githubusercontent.com/xgfone/gconf/master/LICENSE)

An extensible and powerful go configuration manager supporting `Go1.9+`, which is inspired by [oslo.config](https://github.com/openstack/oslo.config), [viper](https://github.com/spf13/viper) and [github.com/micro/go-micro/config](https://github.com/micro/go-micro/tree/master/config).

Expand Down

0 comments on commit 65f6617

Please sign in to comment.