feat: move unit tests from Circleci to Github actions #22
Workflow file for this run
This file contains 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
# WARNING! It is currently being investigated how to make this faster | |
# DO NOT blindly copy this workflow, not noticing the slow down, | |
# because suddenly our tests will take hours to pass CI. | |
# Hopefully this comment here will help prevent that. | |
# https://github.com/MetaMask/metamask-extension/issues/25680 | |
name: Run unit tests | |
on: | |
pull_request: | |
types: [opened,reopened,synchronize] | |
jobs: | |
test-unit-jest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: ./.github/actions/setup-environment | |
- name: test:coverage:jest:dev | |
run: yarn test:coverage:jest:dev | |
- name: test:coverage:jest | |
run: yarn test:coverage:jest | |
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |