Skip to content

Commit

Permalink
Set yaml-linting step as a reusable action
Browse files Browse the repository at this point in the history
  • Loading branch information
tteguayco committed Dec 11, 2023
1 parent b877f1a commit efb52b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,22 @@ jobs:
with:
machine-types: "['ubuntu-22.04']"

# yaml-linting:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout
# uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
# with:
# token: ${{ secrets.CHECKOUT_TOKEN }}

# - name: Run yamllint with custom config
# run: yamllint -c .trunk/configs/.yamllint.yaml .
yaml-linting:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
with:
token: ${{ secrets.CHECKOUT_TOKEN }}
name: YAML Linting
uses: Lombiq/GitHub-Actions/.github/workflows/yaml-lint@dev
with:
machine-types: "['ubuntu-22.04']"

- name: Run yamllint with custom config
run: yamllint -c .trunk/configs/.yamllint.yaml .

post-pull-request-checks-automation:
name: Post Pull Request Checks Automation
Expand Down

0 comments on commit efb52b8

Please sign in to comment.