Tests fixes #189
This file contains hidden or 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: [push] | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| env: | |
| CI: true | |
| jobs: | |
| lint-format-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '21' | |
| - name: Configure CI Git User | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email 'hi@codelit.dev' | |
| git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/codelitdev/medialit | |
| env: | |
| GITHUB_PAT: ${{ secrets.PAT }} | |
| - name: Checkout and pull branch | |
| run: git checkout "${GITHUB_REF:11}" && git pull | |
| - name: Install pnpm | |
| run: | | |
| npm i pnpm@latest -g | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run lint | |
| run: pnpm lint | |
| - name: Run prettier | |
| run: pnpm prettier | |
| - name: Build dependencies | |
| run: | | |
| pnpm -r build | |
| - name: Run test | |
| run: pnpm test |