Skip to content

Commit

Permalink
Add clean working directory checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Jun 6, 2022
1 parent a76fb86 commit fae748d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,22 @@ jobs:
- run: yarn --frozen-lockfile
- run: yarn allow-scripts
- run: yarn build
- name: Require clean working directory after building
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty after building"
exit 1
fi
- run: yarn lint
- run: yarn test
- name: Require clean working directory after tests
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty after tests"
exit 1
fi
- name: Validate RC changelog
if: ${{ startsWith(github.ref, 'release/') }}
run: yarn auto-changelog validate --rc
Expand Down

0 comments on commit fae748d

Please sign in to comment.