Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,13 @@ jobs:
name: build-source-${{ runner.os }}-${{ github.sha }}
- name: Install Google Chrome
if: ${{ matrix.package-name == '@metamask/snaps-controllers' || matrix.package-name == '@metamask/snaps-execution-environments' || matrix.package-name == '@metamask/snaps-utils' }}
run: yarn install-chrome
- run: yarn workspace ${{ matrix.package-name }} run test
uses: MetaMask/action-retry-command@v1
with:
command: yarn install-chrome
- name: Run tests
uses: MetaMask/action-retry-command@v1
with:
command: yarn workspace ${{ matrix.package-name }} run test
- name: Get coverage folder
id: get-coverage-folder
run: |
Expand Down Expand Up @@ -260,8 +265,10 @@ jobs:
name: build-source-${{ runner.os }}-${{ github.sha }}
- name: Build snap
run: yarn workspace ${{ matrix.package-name }} run build
- name: Run E2E test
run: yarn workspace ${{ matrix.package-name }} run test
- name: Run E2E tests
uses: MetaMask/action-retry-command@v1
with:
command: yarn workspace ${{ matrix.package-name }} run test
- name: Require clean working directory
shell: bash
run: |
Expand All @@ -282,5 +289,9 @@ jobs:
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
- run: yarn build:ci
- run: yarn workspace @metamask/snaps-cli run test
- name: Build dependencies
run: yarn build:ci
- name: Run tests
uses: MetaMask/action-retry-command@v1
with:
command: yarn workspace @metamask/snaps-cli run test
14 changes: 0 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,3 @@ jobs:
if [[ $passed != "true" ]]; then
exit 1
fi

re-run:
name: Re-run failed jobs
needs: lint-build-test
if: failure() && fromJSON(github.run_attempt) < 3 && github.event.pull_request.user.login != 'dependabot[bot]' && github.event_name != 'merge_group'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run re-run.yml -F run-id=${{ github.run_id }}
22 changes: 0 additions & 22 deletions .github/workflows/re-run.yml

This file was deleted.

Loading