Credo.Check format_issue opts allow a custom category #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Housekeeping: Reproducing Test-Case Detector (experimental)" | |
on: | |
pull_request: | |
paths: | |
- '**_test.exs' | |
jobs: | |
test: | |
runs-on: ubuntu-18.04 | |
name: "Test for lib/ changes" | |
strategy: | |
matrix: | |
otp: [26.2] | |
elixir: [1.16.2] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- run: git fetch origin master:master | |
- name: Check changes to lib/ | |
id: check_changes | |
run: echo "::set-output name=changes_to_lib::$(git diff --name-only master | grep "^lib")" | |
- name: There are changes to lib/ | |
if: "contains(steps.check_changes.outputs.changes_to_lib, 'lib')" | |
run: | | |
mix deps.get | |
sh test/test_if_tests_fail_after_resetting_lib.sh | |
- name: There are no changes to lib/ | |
if: "!contains(steps.check_changes.outputs.changes_to_lib, 'lib')" | |
run: echo "${{ toJSON(steps.check_changes.outputs.changes_to_lib) }}" |