mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
chore: when comparing mockery generated files, ignore the version (#891)
Refs https://code.forgejo.org/forgejo/runner/actions/runs/7645/jobs/2#jobstep-4-8 <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/891): <!--number 891 --><!--line 0 --><!--description Y2hvcmU6IHdoZW4gY29tcGFyaW5nIG1vY2tlcnkgZ2VuZXJhdGVkIGZpbGVzLCBpZ25vcmUgdGhlIHZlcnNpb24=-->chore: when comparing mockery generated files, ignore the version<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/891 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
fa42b8394e
commit
8ce7965030
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ jobs:
|
|||
|
||||
- name: validate mocks
|
||||
run: |
|
||||
git diff --quiet || {
|
||||
git diff --ignore-matching-lines='Code generated by mockery.*DO NOT EDIT' --quiet || {
|
||||
echo "[ERROR] Please apply the changes mockery suggests:"
|
||||
git diff --color=always
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue