Skip to content

Commit

Permalink
ci: Run tests against Go tip (#319)
Browse files Browse the repository at this point in the history
The steps are based on actions/setup-go#21 (comment).
  • Loading branch information
armenzg authored Jan 14, 2021
1 parent 54ec3fa commit 362a80d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 362a80d

Please sign in to comment.