From 362a80dcc41f9ad11c8df556104db3efa27a419e Mon Sep 17 00:00:00 2001 From: Armen Zambrano G Date: Thu, 14 Jan 2021 09:53:06 -0500 Subject: [PATCH] ci: Run tests against Go tip (#319) The steps are based on https://github.com/actions/setup-go/issues/21#issuecomment-565704236. --- .github/workflows/ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bb2f0168..46103dc86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,10 @@ jobs: golang-tests: name: tests runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 10 strategy: matrix: - go-version: ["1.15", "1.14", "1.13"] + go-version: ["tip", "1.15", "1.14", "1.13"] go111module: ["on", "off"] include: # includes goflags when go111module is on @@ -27,15 +27,25 @@ jobs: run: working-directory: ${{ github.workspace }}/src/github.com/getsentry/sentry-go steps: + - uses: actions/setup-go@v2 + if: matrix.go-version != 'tip' + with: + go-version: ${{ matrix.go-version}} + - name: Run setup-go for tip + if: matrix.go-version == 'tip' + working-directory: ${{ github.workspace }} + run: | + git clone https://go.googlesource.com/go $HOME/gotip + cd $HOME/gotip/src + ./make.bash + echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV + echo "PATH=$HOME/gotip/bin:$PATH" >> $GITHUB_ENV - uses: actions/checkout@v2 with: # Relative path under Github workspace path: ${{ github.workspace }}/src/github.com/getsentry/sentry-go # Getting all history enables using `git merge-base origin/master HEAD` fetch-depth: 0 - - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version}} - name: Adjustments for Module mode enabled if: matrix.go111module == 'on' run: |