diff options
author | Aryan Goharzad <arrygoo@gmail.com> | 2023-01-19 13:28:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 12:28:52 -0600 |
commit | 0536a6afcfce0ef2bebfc7cacf13d3d80ef82229 (patch) | |
tree | 49469590686c8c4e79ef3f50cf2f9c602a2a10b1 /.github | |
parent | f969e746f7ee4db76cb70b409662a925b06647a7 (diff) | |
download | voidsky-0536a6afcfce0ef2bebfc7cacf13d3d80ef82229.tar.zst |
Adding action for linting (#51)
* Adding action for linting * Configuring eslint * Update lint.yml * Update lint.yml * Update lint.yml * adds yarn jest to package.json * test report * debugging tests * trying force exit * force exit * test1 * forceexit * using another reporter * jest debugging * separated lints & tests * test * Cleanup * Add /src/third-party, /ios, and /android to ignore list
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..e645284fb --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,34 @@ +name: Lint + +on: + pull_request: + branches: + - main + +jobs: + linting: + name: Run linters + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + - name: Yarn install + run: yarn + - name: Lint Reporter + uses: wearerequired/lint-action@v2.2.0 + with: + eslint: true + prettier: true + - name: Typescript & Lint check + run: yarn lint + testing: + name: Run tests + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + - name: Yarn install + run: yarn + - name: Run tests + run: | + yarn test --forceExit |