From 68d88ded619ad2d5f0f44aeffee7198e4a0d2ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Tue, 26 Jul 2022 20:50:05 +0200 Subject: [PATCH] Check in build that Sourcery generated files are up-to-date (#4035) --- azure-pipelines.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b0032a383..7cf927fa3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,6 +2,17 @@ trigger: - master 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 pool: vmImage: 'Ubuntu 18.04'