Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See: https://github.com/rhysd/actionlint/blob/main/docs/config.md
self-hosted-runner:
labels:
- ubuntu-latest-m
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
surface-lint:
uses: ./.github/workflows/surface-lint.yml
39 changes: 39 additions & 0 deletions .github/workflows/surface-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Surface Lint

on:
workflow_call:
inputs:
runs-on:
description: "Runner label"
type: string
default: "ubuntu-latest"
shellcheck-ignore:
description: "Space-separated paths to exclude from shell script linting"
type: string
default: ""

jobs:
surface-lint:
timeout-minutes: 10
name: surface-lint
runs-on: ${{ inputs.runs-on }}
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

# yamllint disable rule:line-length
- name: Lint YAML
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
with:
file_or_dir: .
config_file: .yamllint.yml

- name: Lint Shell Scripts
# yamllint disable rule:line-length
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
with:
scandir: ./scripts
ignore_paths: ${{ inputs.shellcheck-ignore }}

- name: Lint GitHub Actions Workflows
uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
2 changes: 2 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default shell dialect for scripts without a shebang.
shell=sh
18 changes: 18 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See: https://yamllint.readthedocs.io/en/stable/

extends: default

rules:
document-start:
present: false
line-length:
level: warning
allow-non-breakable-inline-mappings: true
# GitHub Actions uses `on:` as a workflow trigger key; YAML 1.1 treats `on`
# as a truthy boolean alias. Disable key checking to avoid false positives.
truthy:
check-keys: false
# SHA-pinned action comments use a single space before `#`. Reduce the
# minimum from the default 2 to 1 to match the existing convention.
comments:
min-spaces-from-content: 1