From 2f822e158700881b0b09fb0abe6840c9be54b53b Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Fri, 22 Oct 2021 20:49:31 +0300 Subject: [PATCH] Switch to GitHub Actions --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 31 insertions(+), 10 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..c9facaa --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +--- +name: Go +on: + push: + branches: + - main + pull_request: + schedule: + - cron: '42 3 * * 4' + +jobs: + test: + name: Test + runs-on: ubuntu-20.04 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Go tip + run: | + sudo rm -fr /opt/hostedtoolcache/go /usr/local/go /usr/bin/go /bin/go + curl -o go.tar.gz -L \ + https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz + sudo tar -C /usr/local -xzf go.tar.gz + sudo ln -s /usr/local/go/bin/* /usr/local/bin/ + go version + rm go.tar.gz + + - name: Run tests + run: go test -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4d62faf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go -sudo: false -arch: - - ppc64le - - amd64 -go: - - 1.x - - master - -script: go test -v