From 5451d82b77611d138749e80a351dd0bf8a09d896 Mon Sep 17 00:00:00 2001 From: John Barton Date: Wed, 11 Nov 2020 11:19:52 +1100 Subject: [PATCH 1/3] Add Barebones github actions test --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 18 insertions(+), 11 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 0000000..e6bef73 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.15', '1.14' ] + name: Go ${{ matrix.go }} Tests + steps: + - uses: actions/checkout@v2 + - name: Setup go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - run: go test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ac89140..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -arch: - - amd64 - - ppc64le -language: go - -go: - - 1.x - -os: - - linux - - osx From 573e9186b211b6fc6165d497725a57a9917db1e4 Mon Sep 17 00:00:00 2001 From: John Barton Date: Wed, 11 Nov 2020 11:24:40 +1100 Subject: [PATCH 2/3] Matrix test across mac/win/linux --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6bef73..b31cdbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,12 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: go: [ '1.15', '1.14' ] - name: Go ${{ matrix.go }} Tests + os: [ ubuntu-latest, macOS-latest, windows-latest ] + name: ${{ matrix.os }} Go ${{ matrix.go }} Tests steps: - uses: actions/checkout@v2 - name: Setup go From e57c08db278472e34dfb9093fc464f977aaa1125 Mon Sep 17 00:00:00 2001 From: John Barton Date: Wed, 11 Nov 2020 11:29:55 +1100 Subject: [PATCH 3/3] Add CI badge to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8212be7..1ec45b2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GoDotEnv [![Build Status](https://travis-ci.org/joho/godotenv.svg?branch=master)](https://travis-ci.org/joho/godotenv) [![Build status](https://ci.appveyor.com/api/projects/status/9v40vnfvvgde64u4?svg=true)](https://ci.appveyor.com/project/joho/godotenv) [![Go Report Card](https://goreportcard.com/badge/github.com/joho/godotenv)](https://goreportcard.com/report/github.com/joho/godotenv) +# GoDotEnv ![CI](https://github.com/joho/godotenv/workflows/CI/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/joho/godotenv)](https://goreportcard.com/report/github.com/joho/godotenv) A Go (golang) port of the Ruby dotenv project (which loads env vars from a .env file)