chore: improve workflows #24
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: Check Code Quality | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
branches: development | |
push: | |
branches: development | |
schedule: | |
- cron: "0 9 * * 3" | |
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 |