chore(deps): bump github.com/UpCloudLtd/upcloud-go-api/v8 from 8.25.0 to 8.26.0 #440
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: Examples | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/examples.yml" | |
| - "**.go" | |
| - "go.mod" | |
| - "go.sum" | |
| - "examples/**.md" | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.workflow }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout head | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Install mdtest and upctl | |
| run: | | |
| go install github.com/UpCloudLtd/mdtest@latest | |
| make build | |
| echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
| - name: Test examples | |
| env: | |
| UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_USERNAME }} | |
| UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_PASSWORD }} | |
| run: | | |
| upctl version | |
| upctl account show > /dev/null # Ensure that credentials are valid | |
| mdtest examples/ | |
| cleanup: | |
| name: Cleanup | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: ${{ always() }} | |
| steps: | |
| - name: Install upctl | |
| uses: UpCloudLtd/upcloud-cli-action@0b74850ba423d7d254b75518a31f19bd19aa839c # v1.0.0 | |
| with: | |
| username: ${{ secrets.UPCLOUD_USERNAME }} | |
| password: ${{ secrets.UPCLOUD_PASSWORD }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Purge resources | |
| timeout-minutes: 5 | |
| run: upctl all purge --include example-upctl-* | |
| - name: List remaining resources | |
| run: upctl all list --include *tf-acc-test* --exclude *persistent* | |
| if: ${{ failure() }} |