Skip to content

Commit

Permalink
manually applied geekingfrog's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NortySpock committed Dec 23, 2024
1 parent 11ca95b commit b79cb8a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
# Step: Check out the code.
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# Step: Define how to cache deps. Restores existing cache if present.
- name: Cache deps
Expand Down Expand Up @@ -93,19 +95,14 @@ jobs:
run: mix compile

- name: create cover folder if not exists, to cache coverage reporting results
run: mkdir -p ./cover/
run: mkdir -p ./cover/

- name: emit hint on where to update minimum test coverage
run: echo "to update minimum test coverage requirements, edit coveralls.json"

- name: Run tests, failing loudly on error, emitting coverage to file for use when reporting test coverage in later proposed step
run: set -eo pipefail; mix test --exclude needs_attention --cover | tee ./cover/test_coverage_by_file.txt

# run git fetch --shallow-since far enough back to be confident we'll see some merge commits to the master branch
# (running off the end of a shallow commit history causes git log to believe every file has changed, somehow)
- name: git fetch more than just the most recent commit
run: git fetch --shallow-since="6 months"

- name: generate list of files changed in the last month
run: git --no-pager log --name-only --oneline --since='1 month ago' | tee ./cover/files_changed_in_last_month.txt

Expand Down

0 comments on commit b79cb8a

Please sign in to comment.