Skip to content

Commit

Permalink
[CI] Check for un-built JS dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Jan 13, 2025
1 parent a0c1556 commit 73683ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,36 @@ jobs:
- name: Run Biome
run: yarn run ci

js-dist-current:
name: Check for un-built JS dist files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 14 # lowest supported version

- run: yarn install && yarn build

- name: Check if js dist files are current
id: changes
run: |
echo "STATUS=$(git status --porcelain)" >> $GITHUB_OUTPUT
- name: No changes found
if: steps.changes.outputs.STATUS == ''
run: |
echo "git status is clean"
- name: Changes were found
if: steps.changes.outputs.STATUS != ''
run: |
echo "JS dist files need to be rebuilt"
echo "${{ steps.changes.outputs.STATUS }}"
exit 1
tests:
name: Tests (Node.js ${{ matrix.node-versions }})
runs-on: ubuntu-latest
Expand Down

0 comments on commit 73683ae

Please sign in to comment.