Skip to content

Commit

Permalink
[CONFIG] [Github Actions] new tool added: yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Diaz committed Jun 12, 2024
1 parent 72c3375 commit 3be48ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ jobs:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Build the Docker image
run: make compose/rebuild
- name: Run test in Docker image
- name: Lint in Docker image
run: make compose/lint
- name: Test in Docker image
run: make compose/test
- name: Run in Docker image
run: make compose/run
- name: Tag Docker image
run: docker tag algorithm-exercises-ts:latest algorithm-exercises-ts:${{ github.sha }}
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: YAML lint

on: # yamllint disable-line rule:truthy
push:
branches: ["main", "develop", "feature/*"]
pull_request:
branches: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4

- name: Install yamllint
run: pip install yamllint

- name: Lint YAML files
run: >
yamllint --strict .
&& echo '✔ Your code looks good.'

0 comments on commit 3be48ed

Please sign in to comment.