Add otelpyroscope submodule (#59) #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
go: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', 'tip'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Go ${{ matrix.go }} | |
if: matrix.go != 'tip' | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Go stable | |
if: matrix.go == 'tip' | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.x | |
- name: Install Go tip | |
shell: bash | |
if: matrix.go == 'tip' | |
run: | | |
go install golang.org/dl/gotip@latest | |
gotip download | |
echo "GOROOT=$HOME/sdk/gotip" >> "$GITHUB_ENV" | |
echo "GOPATH=$HOME/go" >> "$GITHUB_ENV" | |
echo "$HOME/go/bin" >> "$GITHUB_PATH" | |
echo "$HOME/sdk/gotip/bin" >> "$GITHUB_PATH" | |
- name: Build example application | |
run: go build example/main.go | |
- name: Run tests | |
run: | | |
which go | |
go version | |
make test |