diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index bbfc29719e..1ed60f712f 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -18,10 +18,25 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - uses: actions/checkout@v4 + - name: Finding files and store to output id: set-matrix run: echo "matrix=$({ cd integration && find . -type d ! -name testdata -maxdepth 1 -print; } | tail -n +2 | cut -c 3- | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT + - uses: actions/setup-go@v5 + with: + go-version: "stable" + + - name: Download Go modules + run: go mod tidy + + - name: Upload prepared workspace + uses: actions/upload-artifact@v4 + with: + name: workspace + path: . + retention-days: 1 + integration: name: test ${{ matrix.test-path }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -32,17 +47,18 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, macos-latest ] - test-path: ${{fromJson(needs.pre-test.outputs.matrix)}} + test-path: ${{ fromJson(needs.pre-test.outputs.matrix) }} steps: - - uses: actions/checkout@v4 + - name: Download prepared workspace + uses: actions/download-artifact@v5 + with: + name: workspace + path: . - uses: actions/setup-go@v5 with: go-version: "stable" - - name: Run Go Mod Tidy - run: go mod tidy - - name: Run Integration Tests env: GOTOOLCHAIN: local+path