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 f5889b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 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
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '/mocks/', '/test/'],
coverageThreshold: {
global: {
branches: 50.22,
functions: 48.78,
lines: 53.44,
statements: 53.63,
branches: 50.67,
functions: 50.63,
lines: 54.59,
statements: 54.76,
},
},
projects: [
Expand Down

0 comments on commit f5889b7

Please sign in to comment.