Skip to content

Commit f183e58

Browse files
committed
Add documentation-workflow
1 parent bfc07dc commit f183e58

2 files changed

Lines changed: 40 additions & 7 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [ master, release-* ]
6+
paths:
7+
- '**.md'
8+
pull_request:
9+
branches: [ master, release-* ]
10+
paths:
11+
- '**.md'
12+
13+
jobs:
14+
quality:
15+
name: Quality checks
16+
runs-on: [ubuntu-latest]
17+
18+
steps:
19+
- name: Setup PHP, with composer and extensions
20+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
21+
with:
22+
php-version: '8.0'
23+
tools: composer:v2
24+
extensions: intl, mbstring, xml
25+
26+
- name: Setup problem matchers for PHP
27+
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
28+
29+
- uses: actions/checkout@v3
30+
31+
- name: Lint markdown files
32+
uses: nosborn/github-action-markdown-cli@v3.1.0
33+
with:
34+
files: .
35+
ignore_path: .markdownlintignore

.github/workflows/php.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: CI
33
on:
44
push:
55
branches: [ '**' ]
6+
paths-ignore:
7+
- '**.md'
68
pull_request:
7-
branches: [ master, release-* ]
9+
branches: [ master, simplesamlphp-* ]
10+
paths-ignore:
11+
- '**.md'
812

913
jobs:
1014
basic-tests:
@@ -205,9 +209,3 @@ jobs:
205209
- name: Psalter
206210
continue-on-error: true
207211
run: php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run
208-
209-
- name: Lint markdown files
210-
uses: nosborn/github-action-markdown-cli@v3.0.1
211-
with:
212-
files: .
213-
ignore_path: .markdownlintignore

0 commit comments

Comments
 (0)