From f9ad9450ccfe4cada4a29fbd8962a081a5db3fa6 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 23 Apr 2021 10:43:36 -0400 Subject: [PATCH 1/4] Test MacOS on GitHub actions --- .github/workflows/test-macos-go.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test-macos-go.yml diff --git a/.github/workflows/test-macos-go.yml b/.github/workflows/test-macos-go.yml new file mode 100644 index 0000000..3fada00 --- /dev/null +++ b/.github/workflows/test-macos-go.yml @@ -0,0 +1,21 @@ +on: [push, pull_request] +name: Test macOS +jobs: + test: + strategy: + matrix: + go-version: ["1.14", "1.x"] + os: [macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Environment + run: | + echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV + - name: Test + run: GO111MODULE=on go test -v ./... From 9736d169da4bd1f6f15036dd4a9dae9ed50feaf5 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 23 Apr 2021 10:47:47 -0400 Subject: [PATCH 2/4] Get all commit history for tag describe --- .github/workflows/test-macos-go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-macos-go.yml b/.github/workflows/test-macos-go.yml index 3fada00..c8d43b2 100644 --- a/.github/workflows/test-macos-go.yml +++ b/.github/workflows/test-macos-go.yml @@ -14,6 +14,8 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Environment run: | echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV From de3eccf414955496f43044032e4c45bc41fc02b6 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 23 Apr 2021 10:54:43 -0400 Subject: [PATCH 3/4] Test Windows --- .github/workflows/test-windows-go.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-windows-go.yml diff --git a/.github/workflows/test-windows-go.yml b/.github/workflows/test-windows-go.yml new file mode 100644 index 0000000..30be7c0 --- /dev/null +++ b/.github/workflows/test-windows-go.yml @@ -0,0 +1,26 @@ +on: [push, pull_request] +name: Test Windows +jobs: + test: + strategy: + matrix: + go-version: ["1.14", "1.x"] + os: [windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup Environment + run: | + echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV + - name: Test + env: + CGO_ENABLED: 1 + GO111MODULE: "on" + run: go test -v ./... From 61fb27ad11c53e8bc3cb01325bf535eba0cbb59c Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Thu, 29 Apr 2021 15:29:15 -0400 Subject: [PATCH 4/4] Move files temporarily --- .appveyor.yml => .appveyor.yml.old | 0 .travis.yml => .travis.yml.old | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .appveyor.yml => .appveyor.yml.old (100%) rename .travis.yml => .travis.yml.old (100%) diff --git a/.appveyor.yml b/.appveyor.yml.old similarity index 100% rename from .appveyor.yml rename to .appveyor.yml.old diff --git a/.travis.yml b/.travis.yml.old similarity index 100% rename from .travis.yml rename to .travis.yml.old