From 951c59929b2c8adedb09002e217963d2a871cd93 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 14 Aug 2025 20:47:21 +0000 Subject: [PATCH 1/2] feat(devcontainer): add ms-azuretools.vscode-containers extension * Included the `ms-azuretools.vscode-containers` extension to enhance container development support. --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 322d5e7..06369bb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,6 +18,7 @@ "esbenp.prettier-vscode", "github.vscode-github-actions", "GitHub.vscode-pull-request-github", + "ms-azuretools.vscode-containers", "redhat.vscode-yaml", "yzhang.markdown-all-in-one" ] From 35b2eec351c5673834e5e5c6cb5e0e851f3815aa Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 14 Aug 2025 20:48:32 +0000 Subject: [PATCH 2/2] feat(workflows): add Prettier and Super Linter GitHub Actions * Introduced `action-prettier.yml` for code formatting using Prettier. * Added `action-super-linter.yml` for linting code with Super Linter. * Both workflows trigger on push events to any branch. --- .github/workflows/action-prettier.yml | 31 +++++++++++++++ .github/workflows/action-super-linter.yml | 47 +++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 .github/workflows/action-prettier.yml create mode 100644 .github/workflows/action-super-linter.yml diff --git a/.github/workflows/action-prettier.yml b/.github/workflows/action-prettier.yml new file mode 100644 index 0000000..f639bc9 --- /dev/null +++ b/.github/workflows/action-prettier.yml @@ -0,0 +1,31 @@ +name: Prettier +on: + push: + branches: + - "*" + +concurrency: + group: prettier-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: write + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Install Prettier and plugins + run: | + npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template + + - name: Prettify code + uses: creyD/prettier_action@v4.6 + with: + prettier_plugins: "prettier-plugin-sh prettier-plugin-jinja-template" + prettier_options: --write . + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/action-super-linter.yml b/.github/workflows/action-super-linter.yml new file mode 100644 index 0000000..6ec6d59 --- /dev/null +++ b/.github/workflows/action-super-linter.yml @@ -0,0 +1,47 @@ +--- +name: Super Linter + +on: + push: + branches: + - "*" + +concurrency: + group: super-linter-${{ github.ref }} + cancel-in-progress: true + +permissions: {} + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v5 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Install Prettier plugins (for summary formatting) + run: | + npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template || true + + - name: Super-linter + uses: super-linter/super-linter@v8 + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_JSCPD: false + VALIDATE_SHELL_SHFMT: false + VALIDATE_YAML_PRETTIER: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false