Skip to content

Commit

Permalink
add path ignore for markdown files (opensearch-project#2312)
Browse files Browse the repository at this point in the history
To save resources and job runners, some PRs do not need to run the full test suite. For PRs and pushes with markdown changes only, the build and test workflow will be skipped. (Linter test should be okay to skipped since it will automatically run with every commit). For PRs and pushes with markdown changes along with other changes, the build and test workflow will not be skipped.

Issue Resolved:
opensearch-project#1214

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: Sergey V. Osipov <sipopo@yandex.ru>
  • Loading branch information
abbyhu2000 authored and sipopo committed Dec 16, 2022
1 parent aad58d1 commit eb4b2e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ name: Build and test
on:
push:
branches: [ '**', '!feature/**', '!backport/**' ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ '**', '!feature/**' ]
paths-ignore:
- '**/*.md'

env:
TEST_BROWSER_HEADLESS: 1
Expand Down

0 comments on commit eb4b2e4

Please sign in to comment.