From a7bff5a7b565aed091e67bdb6ee20672b02a352f Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Mon, 12 Oct 2020 09:51:33 +0200 Subject: [PATCH] Do not test if other schemes duplicate_consistency files changed --- .github/workflows/template.yml.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/template.yml.j2 b/.github/workflows/template.yml.j2 index 051f7dd2..8a667fb4 100644 --- a/.github/workflows/template.yml.j2 +++ b/.github/workflows/template.yml.j2 @@ -1,18 +1,34 @@ on: push: paths: + # build if tests change - 'test/**' + # do not build if other schemes duplicate_consistency files change + - '!test/duplicate_consistency/*.yml' + - 'test/duplicate_consistency/{- scheme_name -}*.yml' + # build if common files change - 'common/**' + # build if scheme changed - 'crypto_{- scheme_type -}/{- scheme_name -}/**' + # build if workflow file changed - '.github/workflows/{- scheme_type -}_{- scheme_name -}.yml' + # Build if any files in the root change, except .md files - '*' - '!*.md' pull_request: paths: + # build if tests change - 'test/**' + # do not build if other schemes duplicate_consistency files change + - '!test/duplicate_consistency/*.yml' + - 'test/duplicate_consistency/{- scheme_name -}*.yml' + # build if common files change - 'common/**' + # build if scheme changed - 'crypto_{- scheme_type -}/{- scheme_name -}/**' + # build if workflow file changed - '.github/workflows/{- scheme_type -}_{- scheme_name -}.yml' + # Build if any files in the root change, except .md files - '*' - '!*.md' schedule: