From 5d4d921dbff073fadea0502bd4563d7d3c5975f8 Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Wed, 21 Oct 2020 04:39:48 -0400 Subject: [PATCH] Refactor linting GHAs Combine linting GitHub Actions into a single Workflow. Minor updates to reflect refactoring in other repos. Signed-off-by: Daniel Farrell --- .github/workflows/dco-check.yml | 17 ----------------- .github/workflows/linting.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/md-links.yml | 16 ---------------- 3 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/dco-check.yml create mode 100644 .github/workflows/linting.yml delete mode 100644 .github/workflows/md-links.yml diff --git a/.github/workflows/dco-check.yml b/.github/workflows/dco-check.yml deleted file mode 100644 index 45724d6..0000000 --- a/.github/workflows/dco-check.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: DCO Check -on: pull_request - -jobs: - dco: - runs-on: ubuntu-latest - name: DCO Check - steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: DCO Check - uses: tim-actions/dco@master - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..9027ba6 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,33 @@ +--- +name: Linting + +on: + pull_request: + +jobs: + dco: + name: DCO in Commit Message(s) + runs-on: ubuntu-latest + steps: + - name: Get PR commits + id: 'get-pr-commits' + uses: tim-actions/get-pr-commits@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Run DCO check + uses: tim-actions/dco@master + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + + markdown-link-check: + name: Markdown Links (modified files) + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Run markdown-link-check + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: ".markdownlinkcheck.json" + check-modified-files-only: "yes" diff --git a/.github/workflows/md-links.yml b/.github/workflows/md-links.yml deleted file mode 100644 index cc9f081..0000000 --- a/.github/workflows/md-links.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Markdown Link Checks -on: pull_request - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - name: Markdown Link Checks - steps: - - name: Check out code - uses: actions/checkout@v1 - - - name: Run markdown-link-check - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - config-file: ".markdownlinkcheck.json" - check-modified-files-only: "yes"