From 1d2df58f18e4982a7987b262afdeb7f3adf414dc Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Thu, 8 Dec 2022 11:28:05 +0100 Subject: [PATCH] use github actions --- .github/workflows/go.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/go.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0459eaf --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +name: properties +on: [push, pull_request] +jobs: + test: + name: Test ${{ matrix.os }} go${{ matrix.go }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + go: ["1.19.x","1.18.x","1.11.x","1.10.x","1.5.x"] + + steps: + - name: Setup Go ${{ matrix.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + with: + path: go/src/github.com/magiconair/properties + + - name: Run Tests (GOPATH) + run: go test ./... + env: + GOPATH: /home/runner/work/properties/go diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d6eea33..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go -go: - - 1.3.x - - 1.4.x - - 1.5.x - - 1.6.x - - 1.7.x - - 1.8.x - - 1.9.x - - "1.10.x" - - "1.11.x" - - "1.12.x" - - "1.13.x" - - "1.14.x" - - "1.15.x" - - "1.16.x" - - "1.17.x" - - "1.18.x" - - "1.19.x" - - tip