Install eslint-config-prettier to be able to run ESLint via GH Actions #89
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: Build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
test-core: | |
name: Test core | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 21 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: false | |
- name: Install dependencies | |
run: pnpm install | |
working-directory: ./core | |
- name: Run typescript | |
run: pnpm tsc --noEmit --skipLibCheck | |
working-directory: ./core | |
- name: Run tests | |
run: pnpm jest | |
working-directory: ./core | |
- name: Run ESLint | |
run: pnpm lint | |
working-directory: ./core |