Skip to content

chore: improve workflows #26

chore: improve workflows

chore: improve workflows #26

Workflow file for this run

name: Check Code Quality
on:
workflow_call:
workflow_dispatch:
pull_request:
branches: development
push:
branches: development
schedule:
- cron: "0 9 * * 3"
concurrency:
group: code-quality-${{ github.sha }}
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Aknowledge about origin/development
run: git fetch -p origin development
- name: It must install the dependencies
uses: ./.github/actions/prepare/install
with:
install-node: "true"
- name: "generate:all should work"
uses: ./.github/actions/prepare/generate
with:
workspace-generate: "true"
- name: "build:all should work"
uses: ./.github/actions/prepare/build
with:
workspace-build: "true"
- name: Require to pass static code check
run: |
git stash -u;
pnpm run -w code-static:check;
if [ `git stash list | wc -l` -gt 0 ]; then
git stash pop;
fi
- name: Require updated integrations
run: |
if [ `git status --porcelain=1 | wc -l` -ne 0 ]; then
git status --porcelain=1;
exit 1;
fi
- name: Require changesets
run: pnpm exec changeset status --since=origin/development