feat: vaults season two closure #1196
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: End to End Tests | |
| on: | |
| pull_request: | |
| env: | |
| TAR_PATH: nobled.tar | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| load: true | |
| tags: noble:local | |
| outputs: type=docker, dest=${{ env.TAR_PATH }} | |
| - name: Publish Tarball as Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: noble-docker-image | |
| path: ${{ env.TAR_PATH }} | |
| prepare: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Generate Matrix | |
| id: set-matrix | |
| run: | | |
| # Run the command and convert its output to a JSON array | |
| TESTS=$(cd e2e && go test -list . | grep -v "^ok " | jq -R -s -c 'split("\n")[:-1]') | |
| echo "matrix=${TESTS}" >> $GITHUB_OUTPUT | |
| test: | |
| needs: | |
| - build | |
| - prepare | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # names of `make` commands to run tests | |
| test: ${{fromJson(needs.prepare.outputs.matrix)}} | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Download Tarball Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: noble-docker-image | |
| - name: Load Docker Image | |
| run: docker image load -i ${{ env.TAR_PATH }} | |
| - name: Run Tests | |
| run: cd e2e && go test -race -v -timeout 30m -run ^${{ matrix.test }}$ . |