Skip to content

Commit

Permalink
added workflow to test lint
Browse files Browse the repository at this point in the history
Signed-off-by: sandeep.nishad1 <sandeep.nishad1@ibm.com>
  • Loading branch information
sandeepnRES committed Feb 2, 2023
1 parent c6c955e commit 5aa39d6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 5aa39d6

Please sign in to comment.