Skip to content

Commit 34889bb

Browse files
committed
Add YAML workflow at GitHub Actions
1 parent e33d723 commit 34889bb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/yaml.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: YAML
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
lint:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 5
10+
steps:
11+
- name: Checkout
12+
uses: actions/[email protected]
13+
- name: yamllint
14+
run: docker run --rm -v ${PWD}:/work tmknom/yamllint --strict .
15+
16+
format:
17+
name: Format
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
- name: Prettier
24+
run: docker run --rm -v ${PWD}:/work tmknom/prettier --list-different --parser=yaml '**/*.y*ml'

0 commit comments

Comments
 (0)