Skip to content

Commit 12645cf

Browse files
committed
💚 ci: switch actionlint to precommit hook
1 parent c89e8da commit 12645cf

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

.github/workflows/test-approval-automation.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: npm run test:coverage
4646

4747
- name: Upload coverage reports
48-
uses: codecov/codecov-action@v3
48+
uses: codecov/codecov-action@v4
4949
if: success()
5050
with:
5151
file: .github/workflows/lib/coverage/lcov.info
@@ -109,27 +109,6 @@ jobs:
109109
}
110110
}
111111
112-
lint-workflows:
113-
name: Lint GitHub Actions Workflows
114-
runs-on: ubuntu-latest
115-
116-
steps:
117-
- name: Checkout code
118-
uses: actions/checkout@v4
119-
120-
- name: Setup Node.js
121-
uses: actions/setup-node@v4
122-
with:
123-
node-version: "18"
124-
125-
- name: Install actionlint
126-
run: |
127-
bash <(curl https://raw.githubusercontent.com/rhymond/actionlint/main/scripts/download-actionlint.bash)
128-
sudo mv ./actionlint /usr/local/bin/
129-
130-
- name: Lint workflow files
131-
run: actionlint .github/workflows/*.yml
132-
133112
validate-approval-logic:
134113
name: Validate Approval Logic
135114
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ repos:
1111
hooks:
1212
- id: editorconfig-checker
1313
alias: ec
14+
15+
- repo: https://github.com/rhysd/actionlint
16+
rev: "v1.7.7"
17+
hooks:
18+
- id: actionlint

0 commit comments

Comments
 (0)