Skip snapshotter root path creation for standalone convert mode #4021
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: Build | |
| on: | |
| push: | |
| branches: ['main', 'release/**'] | |
| paths: | |
| - '**' | |
| - '!docs/**' # ignore docs changes | |
| - '!**.md' # ignore markdown changes | |
| pull_request: | |
| branches: ['main', 'release/**'] | |
| paths: | |
| - '.github/workflows/build.yml' | |
| - '**.go' | |
| - 'go.*' | |
| - 'cmd/go.*' | |
| - 'Makefile' | |
| - 'Dockerfile' | |
| - 'integration/**' | |
| - 'scripts/**' | |
| - 'ztoc/**' # Includes flatbuf + C files | |
| - '!benchmark/**' | |
| env: | |
| GOTESTSUM_VERSION: 1.13.0 | |
| jobs: | |
| setup: | |
| uses: ./.github/workflows/setup.yml | |
| test: | |
| needs: setup | |
| runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }} | |
| strategy: | |
| matrix: | |
| os: ${{ fromJSON(needs.setup.outputs.available-runners) }} | |
| go-version: ['1.25.7', '1.26.0'] | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install zlib static on AL2 ARM instances | |
| if: matrix.os == 'al2-arm' | |
| run: dnf install zlib-static.aarch64 -y | |
| - run: make | |
| - run: make test-with-coverage | |
| - name: Show test coverage | |
| run: make show-test-coverage | |
| integration: | |
| needs: setup | |
| runs-on: ${{ fromJSON(needs.setup.outputs.runner-labels)[matrix.os] }} | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ${{ fromJSON(needs.setup.outputs.available-runners) }} | |
| go-version: ['1.25.7', '1.26.0'] | |
| containerd: ["1.7.29", "2.0.7", "2.1.5"] | |
| env: | |
| DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install gotestsum | |
| run: go install gotest.tools/gotestsum@v${{ env.GOTESTSUM_VERSION }} | |
| - name: Install zlib static on AL2 ARM instances | |
| if: matrix.os == 'al2-arm' | |
| run: dnf install zlib-static.aarch64 -y | |
| - name: Run integration tests | |
| run: | | |
| if [[ "${{ matrix.os }}" == "ubuntu-x86" ]]; then | |
| SKIP_SYSTEMD_TESTS=1 | |
| fi | |
| SKIP_SYSTEMD_TESTS=$SKIP_SYSTEMD_TESTS make integration-with-coverage | |
| - name: Show test coverage | |
| run: make show-integration-coverage |