Skip to content

Commit 86dc5a2

Browse files
committed
ci: verify ores-lint hook installer contract
1 parent df7e2fd commit 86dc5a2

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ores-lint hook contract
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.ores-lint/install-git-hooks.sh'
7+
- '.ores-lint/test-install-git-hooks.sh'
8+
- '.github/workflows/ores-lint-hook-contract.yml'
9+
push:
10+
branches: [master]
11+
paths:
12+
- '.ores-lint/install-git-hooks.sh'
13+
- '.ores-lint/test-install-git-hooks.sh'
14+
- '.github/workflows/ores-lint-hook-contract.yml'
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
concurrency:
21+
group: ores-lint-hook-contract-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
contract:
26+
runs-on: ubuntu-24.04
27+
timeout-minutes: 5
28+
steps:
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30+
with:
31+
persist-credentials: false
32+
- name: Syntax
33+
run: |
34+
sh -n .ores-lint/install-git-hooks.sh
35+
sh -n .ores-lint/test-install-git-hooks.sh
36+
- name: Installer contract
37+
run: sh .ores-lint/test-install-git-hooks.sh

0 commit comments

Comments
 (0)