Check in build that Sourcery generated files are up-to-date (#4035)

This commit is contained in:
Danny Mösch 2022-07-26 20:50:05 +02:00 committed by GitHub
parent 9e485266be
commit 68d88ded61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,17 @@ trigger:
- master - master
jobs: jobs:
- job: Sourcery
pool:
vmImage: 'macOS-12'
steps:
- script: brew install sourcery
displayName: Install Sourcery
- script: make sourcery
displayName: Generate sources
- script: "! git diff -U0 | grep '^[-+][^-+]' | grep --invert-match '// Generated using Sourcery'"
displayName: Check changed files ignoring Sourcery's version
- job: linux - job: linux
pool: pool:
vmImage: 'Ubuntu 18.04' vmImage: 'Ubuntu 18.04'