From 5aa39d6084213f2e232ceda85ec8aef519fd1e22 Mon Sep 17 00:00:00 2001 From: "sandeep.nishad1" Date: Thu, 2 Feb 2023 11:48:52 +0530 Subject: [PATCH] added workflow to test lint Signed-off-by: sandeep.nishad1 --- .github/workflows/test_lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test_lint.yml diff --git a/.github/workflows/test_lint.yml b/.github/workflows/test_lint.yml new file mode 100644 index 000000000..fd35049d0 --- /dev/null +++ b/.github/workflows/test_lint.yml @@ -0,0 +1,24 @@ +# Copyright IBM Corp. All Rights Reserved. +# +# SPDX-License-Identifier: CC-BY-4.0 + +name: Lint Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + DCI-Lint: + name: DCI-Lint + runs-on: ubuntu-20.04 + steps: + - id: lint-git-repo + name: Lint Git Repo + uses: petermetz/gh-action-dci-lint@v0.6.1 + with: + lint-git-repo-request: '{"cloneUrl": "${{ github.server_url }}/${{ github.repository }}.git", "fetchArgs": ["--update-head-ok", "--no-tags", "--prune", "--progress", "--no-recurse-submodules", "--depth=1", "origin" ,"+${{ github.sha }}:${{ github.ref }}"], "checkoutArgs": [ "${{ github.ref }}"], "targetPhrasePatterns": [], "configDefaultsUrl": "https://inclusivenaming.org/json/dci-lint-config-recommended-v1.json" }' + - name: Get the output response + run: echo "${{ steps.lint-git-repo.outputs.lint-git-repo-response }}" \ No newline at end of file