Bump Go to v1.26 and update vulnerable package #126
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: Q Release Test | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release_type: | |
| description: "Release type" | |
| required: true | |
| default: "stable" | |
| type: choice | |
| options: | |
| - stable | |
| version_tag: | |
| description: "Version tag (e.g., v1.5.0)" | |
| required: true | |
| type: string | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| cache: false | |
| - name: Configure git | |
| run: | | |
| git config --global user.name "MinIO Bot" | |
| git config --global user.email "dev@min.io" | |
| - name: Install Just | |
| uses: extractions/setup-just@v3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Q Release Toolkit | |
| run: | | |
| curl -fsSL https://dl.min.io/download-info/qreleaser.tar.zst -o /tmp/qreleaser.tar.zst | |
| tar --zstd -xf /tmp/qreleaser.tar.zst -C /tmp/ | |
| echo y | just -f /tmp/qreleaser/Justfile install | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| qreleaser setup-deps --install | |
| - name: Determine release type and version | |
| id: release-type | |
| run: | | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
| TYPE="${{ inputs.release_type }}" | |
| echo "version=${{ inputs.version_tag }}" >> $GITHUB_OUTPUT | |
| else | |
| TYPE="stable" | |
| echo "version=v10.0.0" >> $GITHUB_OUTPUT | |
| fi | |
| echo "type=${TYPE}" >> $GITHUB_OUTPUT | |
| # Map type to directory name (used in artifact paths) | |
| if [ "$TYPE" = "stable" ]; then | |
| echo "type_dir=release" >> $GITHUB_OUTPUT | |
| else | |
| echo "type_dir=${TYPE}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Run Q Release (Test Mode) | |
| env: | |
| CI: "1" | |
| DEBUG: "1" | |
| Q_CI_SRC_DIR: ${{ github.workspace }} | |
| Q_VERSION_TAG: ${{ steps.release-type.outputs.version }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| qreleaser main ${{ github.repository }} ${{ steps.release-type.outputs.type }} | |
| - name: Verify Release Artifacts | |
| run: | | |
| find ${{ github.workspace }}/warp-release -type f | |
| ${{ github.workspace }}/warp-release/${{ steps.release-type.outputs.type_dir }}/linux-amd64/warp --version | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: release-artifacts-${{ steps.release-type.outputs.type }} | |
| path: warp-release/ | |
| retention-days: 7 |