Skip to content

Commit

Permalink
Add ymllint, shellcheck and other actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roceb committed Aug 13, 2024
1 parent 78daa52 commit 7b25cf3
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Lint Markdown Files

on:

Check warning on line 4 in .github/workflows/markdownlint.yaml

View workflow job for this annotation

GitHub Actions / lint

4:1 [truthy] truthy value should be one of [false, true]
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run linter
uses: actionshub/markdownlint@main
8 changes: 8 additions & 0 deletions .github/workflows/rebase_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Check that 'main' is not merged into the development branch

on: pull_request

Check warning on line 4 in .github/workflows/rebase_checker.yaml

View workflow job for this annotation

GitHub Actions / lint

4:1 [truthy] truthy value should be one of [false, true]

jobs:
call-workflow:
uses: lsst/rubin_workflows/.github/workflows/rebase_checker.yaml@main
18 changes: 18 additions & 0 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: shellcheck

on:

Check warning on line 4 in .github/workflows/shellcheck.yaml

View workflow job for this annotation

GitHub Actions / lint

4:1 [truthy] truthy value should be one of [false, true]
push:
branches:
- main
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
# See https://github.com/ludeeus/action-shellcheck for customizations
25 changes: 25 additions & 0 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Lint YAML Files

on:

Check warning on line 4 in .github/workflows/yamllint.yaml

View workflow job for this annotation

GitHub Actions / lint

4:1 [truthy] truthy value should be one of [false, true]
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.12

- name: Install
run: pip install yamllint

- name: Run linter
run: yamllint .

0 comments on commit 7b25cf3

Please sign in to comment.