Go SDK Integration Tests #1094
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 SDK Integration Tests | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
schedule: | |
- cron: '14 14 * * *' | |
jobs: | |
test: | |
name: Go SDK Integration Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: '1.18' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Get dependencies | |
run: | | |
go mod download | |
- name: Run unit tests | |
timeout-minutes: 5 | |
run: | | |
make test | |
- name: Sleep random seconds to ensure test call are not executed at exactly the same time (push and pr runs) | |
run: sleep $(( ( RANDOM % 30 ) + 1 )) | |
shell: bash | |
- name: Run integration tests | |
timeout-minutes: 60 | |
env: | |
CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_TOKEN }} | |
if: env.CLOUDSCALE_API_TOKEN != null | |
run: | | |
make integration |