From 31d52f46b4a70ef5ea437d43e58083cbaed0ca6a Mon Sep 17 00:00:00 2001 From: William Yardley Date: Thu, 13 Feb 2025 22:07:57 -0800 Subject: [PATCH] Add Actionlint check for actions Check the actions in this repo with actionlint and yamllint; make the filename generic so that other checks can also be added --- .github/dependabot.yml | 5 +++-- .github/workflows/self_check.yml | 22 ++++++++++++++++++++++ .yamllint | 6 ++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/self_check.yml create mode 100644 .yamllint diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 44d8984..46e8cf3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: @@ -5,7 +6,7 @@ version: 2 updates: - - package-ecosystem: "github-actions" # See documentation for possible values + - package-ecosystem: github-actions directory: "/" # Location of package manifests schedule: - interval: "daily" + interval: daily diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml new file mode 100644 index 0000000..b73b662 --- /dev/null +++ b/.github/workflows/self_check.yml @@ -0,0 +1,22 @@ +--- +name: Self Checks +on: pull_request + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: actionlint + uses: raven-actions/actionlint@v2 + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Install yamllint + run: pip3 install yamllint + - name: Run yamllint + run: yamllint -f github . diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..8de7f11 --- /dev/null +++ b/.yamllint @@ -0,0 +1,6 @@ +--- +rules: + indentation: + spaces: 2 + line-length: + max: 250