feat: add unit tests for helpers #23
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
name: Code Quality | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened, labeled] | |
push: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Linting | |
steps: | |
- name: Checkout aries-mobile-agent-react-native | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-node | |
- name: Install dependencies | |
run: | | |
yarn install --immutable | |
- name: Bundle Legacy Core | |
run: | | |
cd packages/legacy/core && \ | |
yarn run prepack | |
- name: Check style | |
run: | | |
yarn run prettier | |
- name: LINTing | |
run: | | |
yarn run lint | |
test: | |
runs-on: ubuntu-latest | |
name: Testing | |
steps: | |
- name: Checkout aries-mobile-agent-react-native | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-node | |
- name: Install dependencies | |
run: | | |
yarn install --immutable | |
- name: Automated testing | |
run: | | |
yarn run test:coverage | |
- uses: codecov/codecov-action@v3 |