-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 933 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: run shellcheck and shfmt
on:
push:
paths:
- 'coffin.bash'
- 'open.bash'
- 'close.bash'
- 'timer.bash'
pull_request:
paths:
- 'coffin.bash'
- 'open.bash'
- 'close.bash'
- 'timer.bash'
jobs:
lint:
name: use shellcheck to lint pass-coffin
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine:stable
steps:
- name: checkout pass-coffin for shellcheck
uses: actions/checkout@v3
- name: run shellcheck
run: shellcheck coffin.bash open.bash close.bash timer.bash
format:
name: use shfmt to check pass-coffin code format
runs-on: ubuntu-latest
container:
image: mvdan/shfmt:v3-alpine
steps:
- name: checkout pass-coffin for shfmt
uses: actions/checkout@v3
- name: run shfmt
run: shfmt -d -s -i 2 -bn -ci -sr coffin.bash open.bash close.bash timer.bash