chore(devcontainer): Install yamllint #1345
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Lint Job | |
on: | |
workflow_dispatch: {} | |
pull_request: {} | |
jobs: | |
yamllint-job: | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.12.3-alpine3.18@sha256:24680ddf8422899b24756d62b31eb5de782fbb42e9c2bb1c70f1f55fcf891721 | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install YAML Lint | |
run: pip3 install yamllint | |
- name: Run yamllint | |
run: yamllint -c .github/configs/yamllint.yaml . | |
terraform-lint-job: | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install terraform | |
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 | |
- name: Run checker script | |
run: bash scripts/terraform-lint.sh |