diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9b65ea3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: test +on: push + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: + - "macos-12" + - "macos-11" + - "macos-10.15" + - "ubuntu-22.04" + - "ubuntu-20.04" + - "ubuntu-18.04" + go: ["1.18"] + name: ${{ matrix.os }} test + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} + - name: Run test + run: | + if [ "$(uname)" == "Linux" ]; then + sudo go test -v + else + go test -v + fi + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d9c93c2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: go -go: - - "1.17.x" - -matrix: - include: - # utilize xcode builds to test different macOS versions, - # see: https://docs.travis-ci.com/user/reference/osx/#macos-version - - name: macOS 11.6 - osx_image: xcode13.1 # => macOS 11.6 - os: osx - - name: macOS 10.15 - osx_image: xcode12.2 # => macOS 10.15.7 - os: osx - - name: macOS 10.14 - osx_image: xcode11.3 # => macOS 10.14.6 - os: osx - - name: macOS 10.13 - osx_image: xcode10.1 # => macOS 10.13 - os: osx - - name: macOS 10.12 - osx_image: xcode9.2 # => macOS 10.12 - os: osx - # linux requires sudo to run our integration tests - - name: Linux - os: linux - sudo: required - env: SUDO_REQUIRED=true - -script: - - | - if [ "${SUDO_REQUIRED}" == "true" ]; then - sudo env "PATH=$PATH" go test -v - else - go test -v - fi