Merge pull request #125 from codelitdev/issue-122 #100
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: Code Quality | |
on: [push] | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
CI: true | |
jobs: | |
publish-packages: | |
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 '[email protected]' | |
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/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 --filter=@medialit/utils build | |
pnpm --filter=@medialit/models build | |
pnpm --filter=@medialit/images build | |
pnpm --filter=@medialit/thumbnail build | |
- name: Run test | |
run: pnpm test |