Repository navigation
router: add initial API client #1982
Workflow file for this run
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: Go SDK Integration Tests | |
| on: | |
| push: | |
| branches: [master] | |
| paths-ignore: | |
| - 'README.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'README.md' | |
| schedule: | |
| - cron: '14 14 * * *' | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| jobs: | |
| test: | |
| name: Go SDK Integration Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| - name: Run go vet | |
| run: | | |
| make vet | |
| - name: Run unit tests | |
| timeout-minutes: 5 | |
| run: | | |
| make test | |
| - name: Run integration tests | |
| timeout-minutes: 60 | |
| env: | |
| CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_TOKEN }} | |
| if: env.CLOUDSCALE_API_TOKEN != null | |
| run: | | |
| make integration |