fix: require from module's root returns an empty object. #42
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
name: Pull request workflow | |
on: pull_request | |
jobs: | |
lint: | |
name: Find linting problems in your JavaScript | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install node_modules | |
run: yarn | |
- name: Run ESLint check | |
run: yarn run lint | |
test: | |
name: Running unit tests | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install node_modules | |
run: yarn | |
- name: Build | |
run: yarn run build | |
- name: Run tests | |
run: yarn run test |