Skip to content

Commit 2c599ca

Browse files
committed
minor #257 Ensure JS dist files are current in CI (kbond)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- Ensure JS dist files are current in CI | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | n/a | License | MIT This action job will fail if the dist files need to be rebuilt. [Failure example](https://github.com/symfony/ux/runs/5022158414?check_suite_focus=true). Commits ------- 952725c Ensure JS dist files are current in CI
2 parents 9f9cabc + 952725c commit 2c599ca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ jobs:
2222
- run: yarn check-lint
2323
- run: yarn check-format
2424

25+
js-dist-current:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@master
29+
- run: yarn && yarn build
30+
- name: Check if js dist files are current
31+
id: changes
32+
uses: UnicornGlobal/[email protected]
33+
34+
- name: Ensure no changes
35+
if: steps.changes.outputs.changed == 1
36+
run: |
37+
echo "JS dist files need to be rebuilt"
38+
exit 1
39+
2540
tests-php-low-deps:
2641
runs-on: ubuntu-latest
2742
steps:

0 commit comments

Comments
 (0)