Skip to content

Commit

Permalink
github-actions-lint 追加github-actions-lint 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
SaekiTominaga committed Feb 28, 2024
1 parent a27007b commit 3cc4b58
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/github-actions-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: github-actions-lint
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/*.yml'
push:
branches:
- main
paths:
- '.github/workflows/*.yml'
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm run github-actions-lint
193 changes: 192 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "config",
"scripts": {
"github-actions-lint": "yamllint .github/workflows/*.yml"
},
"devDependencies": {
"yaml-lint": "^1.7.0"
},
"private": true,
"workspaces": [
"packages/*"
Expand Down

0 comments on commit 3cc4b58

Please sign in to comment.