Merge pull request #493 from ladesa-ro/dev/gabriel #14
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: | |
pull_request: | |
branches: development | |
push: | |
branches: development | |
workflow_dispatch: | |
schedule: | |
- cron: "0 9 * * 3" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
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: The generation and build should work | |
run: pnpm run -w generate:all && pnpm run -w build:all; | |
- 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 |