Gotip cron #986
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
| name: Gotip cron | |
| on: | |
| schedule: | |
| - cron: '37 1 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| go: | |
| runs-on: ubuntu-x64-large | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go stable | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version: 1.x | |
| - name: Install Go tip | |
| shell: bash | |
| 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: Run tests | |
| run: | | |
| which go | |
| go version | |
| make test |