fix: print API error message instead of operation nil #89
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: CI | |
| on: | |
| pull_request: | |
| jobs: | |
| test-e2e-without-api: | |
| name: Run E2E (Testscript) Tests / Without API | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Build binary | |
| run: make build | |
| - name: Run E2E (Testscript) Tests / Without API | |
| run: | | |
| cd tests/e2e | |
| go test -v | |
| test-e2e-with-api: | |
| name: Run E2E (Testscript) Tests / With API | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Build binary | |
| run: make build | |
| - name: Run E2E (Testscript) Tests / With API | |
| env: | |
| EXOSCALE_API_KEY: ${{ secrets.EXOSCALE_API_KEY }} | |
| EXOSCALE_API_SECRET: ${{ secrets.EXOSCALE_API_SECRET }} | |
| EXOSCALE_ZONE: ch-gva-2 | |
| run: | | |
| cd tests/e2e | |
| go test -v -tags=api -timeout 30m -run TestScriptsAPI 2>&1 |