From f86b36a13888449a0be5e0e4332a6164aa63a744 Mon Sep 17 00:00:00 2001 From: David Anson Date: Wed, 13 Jan 2021 15:08:22 -0800 Subject: [PATCH] Split workflow jobs so they all run even when one fails (expectedly). --- .github/workflows/test.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65fddec..61e7cf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test +name: Test markdownlint-cli2-action on: pull_request: @@ -6,22 +6,27 @@ on: workflow_dispatch: jobs: - test: - name: Test markdownlint-cli2-action + no-globs: + name: No globs (README.md, no errors) runs-on: ubuntu-latest - strategy: - fail-fast: false steps: - uses: actions/checkout@v2 - - name: No globs (README.md, no errors) - uses: ./ - - name: One glob (test/error.md, errors) - uses: ./ + - uses: ./ + one-glob: + name: One glob (test/errors.md, errors) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ with: globs: test/errors.md - - name: Two globs (README.md and test/error.md, errors) - uses: ./ + two-globs: + name: Two globs (README.md and test/errors.md, errors) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ with: globs: | *.md - test/* \ No newline at end of file + test/*