From f55dd564545cec84cf84f7a53fb3025cdbec1c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Wo=C5=9B?= Date: Mon, 18 Apr 2022 23:54:26 +0200 Subject: [PATCH] Migrate to Github Actions (#245) * Migrate to Github Actions * Remove architecture param * Remove Travis config, update readme --- .github/workflows/ci.yml | 17 +++++++++++++++++ .travis.yml | 19 ------------------- README.md | 4 +++- 3 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..ffd67624 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: decimal-ci +on: [push] +jobs: + ci-job: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.7.x', '1.15', '1.16', '1.17', '1.x' ] + name: Go ${{ matrix.go }} + steps: + - uses: actions/checkout@v2 + - name: Use go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - run: go build . + - run: go test -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6326d40f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: go - -arch: - - amd64 - - ppc64le - -go: - - 1.7.x - - 1.14.x - - 1.15.x - - 1.16.x - - 1.17.x - - tip - -install: - - go build . - -script: - - go test -v diff --git a/README.md b/README.md index 2e35df06..15cdedfb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # decimal -[![Build Status](https://app.travis-ci.com/shopspring/decimal.svg?branch=master)](https://app.travis-ci.com/shopspring/decimal) [![GoDoc](https://godoc.org/github.com/shopspring/decimal?status.svg)](https://godoc.org/github.com/shopspring/decimal) [![Go Report Card](https://goreportcard.com/badge/github.com/shopspring/decimal)](https://goreportcard.com/report/github.com/shopspring/decimal) +[![Github Actions](https://github.com/shopspring/decimal/actions/workflows/ci.yml/badge.svg)](https://github.com/shopspring/decimal/actions/workflows/ci.yml) +[![GoDoc](https://godoc.org/github.com/shopspring/decimal?status.svg)](https://godoc.org/github.com/shopspring/decimal) +[![Go Report Card](https://goreportcard.com/badge/github.com/shopspring/decimal)](https://goreportcard.com/report/github.com/shopspring/decimal) Arbitrary-precision fixed-point decimal numbers in go.