[CI] Re-organize workflows: split unit/functional/app tests, split co… #4
Workflow file for this run
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: Dist Files Unbuilt Check | |
on: | |
push: | |
paths-ignore: | |
- 'src/*/doc/**' | |
- 'src/**/*.md' | |
- 'ux.symfony.com/**' | |
pull_request: | |
paths-ignore: | |
- 'src/*/doc/**' | |
- 'src/**/*.md' | |
- 'ux.symfony.com/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
js-dist-built-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm i -g corepack && corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: | | |
yarn.lock | |
**/package.json | |
- run: yarn --immutable && yarn build | |
- name: Check if JS dist files are current | |
run: | | |
if ! git diff --quiet; then | |
echo "The Git workspace is unclean! Changes detected:" | |
git status --porcelain | |
git diff | |
exit 1 | |
else | |
echo "The Git workspace is clean. No changes detected." | |
fi |