|  | 
|  | 1 | +--- | 
| 1 | 2 | name: Test, Build, and Push Docker Image | 
| 2 | 3 | 
 | 
| 3 |  | -on: | 
|  | 4 | +on:  # yamllint disable-line rule:truthy | 
| 4 | 5 |   push: | 
| 5 | 6 |     branches: ["main"] | 
| 6 | 7 |     tags: | 
|  | 
| 12 | 13 | 
 | 
| 13 | 14 | # GOAL: | 
| 14 | 15 | #  on pushes to main branch or v* tag | 
| 15 |  | -#    - ruff, mdlint, test | 
|  | 16 | +#    - ruff, mdlint, yamllint, test | 
| 16 | 17 | #  on PRs against main branch | 
| 17 |  | -#    - ruff, mdlint, test | 
|  | 18 | +#    - ruff, mdlint, yamllint, test | 
| 18 | 19 | #  on Release creation | 
| 19 |  | -#    - ruff, mdlint, test | 
|  | 20 | +#    - ruff, mdlint, yamllint, test | 
| 20 | 21 | #  on the above events when the triggered actor is the repo owner | 
| 21 | 22 | #    - docker | 
| 22 | 23 | #  on Release creation (ex: maybe a maintainer that isn't repo owner) | 
| @@ -44,18 +45,30 @@ jobs: | 
| 44 | 45 |   mdlint: | 
| 45 | 46 |     runs-on: ubuntu-latest | 
| 46 | 47 |     steps: | 
| 47 |  | -    - name: Check out repository code | 
| 48 |  | -      uses: actions/checkout@v4 | 
| 49 |  | -     | 
| 50 |  | -    - name: Run markdownlint-cli2 | 
| 51 |  | -      uses: DavidAnson/markdownlint-cli2-action@v17 | 
| 52 |  | -      # file globbing configured in .markdownlint-cli2.yaml | 
|  | 48 | +      - name: Check out repository code | 
|  | 49 | +        uses: actions/checkout@v4 | 
|  | 50 | + | 
|  | 51 | +      - name: Run markdownlint-cli2 | 
|  | 52 | +        uses: DavidAnson/markdownlint-cli2-action@v17 | 
|  | 53 | +        # file globbing configured in .markdownlint-cli2.yaml | 
|  | 54 | + | 
|  | 55 | +  yamllint: | 
|  | 56 | +    runs-on: ubuntu-latest | 
|  | 57 | +    steps: | 
|  | 58 | +      - name: Check out repository code | 
|  | 59 | +        uses: actions/checkout@v4 | 
|  | 60 | + | 
|  | 61 | +      - name: Run yamllint | 
|  | 62 | +        uses: ibiqlik/action-yamllint@v3 | 
|  | 63 | +        with: | 
|  | 64 | +          file_or_dir: . | 
| 53 | 65 | 
 | 
| 54 | 66 |   test: | 
| 55 | 67 |     runs-on: ubuntu-latest | 
| 56 | 68 |     needs: | 
| 57 | 69 |       - "ruff" | 
| 58 | 70 |       - "mdlint" | 
|  | 71 | +      - "yamllint" | 
| 59 | 72 |     strategy: | 
| 60 | 73 |       matrix: | 
| 61 | 74 |         python-version: ["3.9", "3.10", "3.11", "3.12"] | 
| @@ -117,3 +130,4 @@ jobs: | 
| 117 | 130 |           push: true | 
| 118 | 131 |           platforms: linux/amd64,linux/arm64 | 
| 119 | 132 |           tags: ${{ steps.meta.outputs.tags }} | 
|  | 133 | +... | 
0 commit comments