Skip to content

Commit 35f266d

Browse files
committed
Add workflows
1 parent 38ebed5 commit 35f266d

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Normalize composer.json
2+
3+
on:
4+
push:
5+
paths:
6+
- "composer.json"
7+
8+
jobs:
9+
normalize:
10+
timeout-minutes: 1
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Git checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Validate Composer configuration
17+
run: composer validate --strict
18+
19+
- name: Normalize composer.json
20+
run: |
21+
composer global require ergebnis/composer-normalize
22+
composer normalize
23+
24+
- uses: stefanzweifel/[email protected]
25+
with:
26+
commit_message: normalize composer.json
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Normalize Markdown
2+
3+
on:
4+
push:
5+
paths:
6+
- "*.md"
7+
8+
jobs:
9+
normalize:
10+
timeout-minutes: 1
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Git checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Prettify markdown
17+
uses: creyD/[email protected]
18+
with:
19+
prettier_options: --write **/*.md

0 commit comments

Comments
 (0)