Merge pull request #174 from medyagh/dependabot/go_modules/cloud.goog… #332
This file contains hidden or 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
| on: | |
| pull_request: | |
| paths: | |
| - "**.go" | |
| - "**.yml" | |
| - "go.mod" | |
| push: | |
| branches: | |
| - master | |
| name: Build PR | |
| jobs: | |
| build: | |
| name: Build binaries | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Fetch Git Tags | |
| run: | | |
| git fetch --prune --unshallow --tags | |
| - name: Get SHORT SHA | |
| id: shortsha | |
| run: | | |
| echo "::set-output name=sha8::$(echo ${{github.event.pull_request.head.sha}} | cut -c1-8)" | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Cross Platform Build | |
| run: | | |
| export PATH=$PATH:$(go env GOPATH)/bin | |
| make cross | |
| - name: Test | |
| run: | | |
| export PATH=$PATH:$(go env GOPATH)/bin | |
| make test | |
| - name: Report url | |
| shell: bash | |
| run: | | |
| echo "*******************************************************" | |
| echo "https://gopogh.blob.core.windows.net/gopogh/${{github.event.number}}/${{ steps.shortsha.outputs.sha8 }}/output.html" | |
| echo "https://gopogh.blob.core.windows.net/gopogh/${{github.event.number}}/${{ steps.shortsha.outputs.sha8 }}/output.html" | |
| echo "*******************************************************" |