Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Apr 2, 2024
1 parent c454894 commit 7d0f496
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ jobs:
with:
elasticsearch-version: 8

- name: Webpack frontend files
run: |
echo "Removing yarn.lock due to yarn v1 package resolution issues"
echo "https://github.com/iarna/wide-align/issues/63"
cd arches_rdm_example_project
rm yarn.lock
yarn && yarn build_test
cd ..
- name: Check for missing migrations
run: |
python manage.py makemigrations --check
Expand All @@ -69,3 +60,18 @@ jobs:
- name: Report coverage
run: |
coverage report
- name: Retrieve baseline coverage
run: |
git fetch origin main:main
baseline_coverage=$(git show main:.coverage | coverage report -m | grep TOTAL | awk '{print $4}')
echo "$baseline_coverage" > .coverage_baseline
- name: Compare coverage with baseline
run: |
current_coverage=$(coverage report -m | grep TOTAL | awk '{print $4}' | sed 's/%//')
baseline_coverage=$(cat .coverage_baseline)
if (( current_coverage < baseline_coverage )); then
echo "Coverage decreased from $baseline_coverage% to $current_coverage%"
exit 1
fi

0 comments on commit 7d0f496

Please sign in to comment.