Skip to content

Commit 05ca2fc

Browse files
committed
Start with a linting workflow
1 parent 778b9cf commit 05ca2fc

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ updates:
99
schedule:
1010
# Check for updates to GitHub Actions every week
1111
interval: "weekly"
12+
1213
- package-ecosystem: "npm"
1314
directory: "/"
1415
versioning-strategy: auto
@@ -18,3 +19,4 @@ updates:
1819
ignore:
1920
- dependency-name: "*"
2021
update-types: ["version-update:semver-patch"]
22+

.github/workflows/on_pr_lint.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "On PR Lint"
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
check_dependabot:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout source code
13+
uses: actions/checkout@v4
14+
15+
- name: Check Changes
16+
id: changed-env
17+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
18+
with:
19+
files: |
20+
.github/dependabot.yml
21+
22+
- if: |
23+
steps.changed-env.outputs.any_modified == 'true'
24+
run: |
25+
npx -y @bugron/validate-dependabot-yaml@latest
26+
27+
lint_cupcake:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout source code
31+
uses: actions/checkout@v4
32+
33+
- name: Lint Code Base
34+
uses: oxsecurity/megalinter/flavors/cupcake@v8.5.0

0 commit comments

Comments
 (0)