Repository navigation
92 lines (86 loc) · 2.7 KB
/
Copy pathci.yml
File metadata and controls
92 lines (86 loc) · 2.7 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
- "!dependabot/**"
- "!release-please--branches--**"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
name: Detect changes
runs-on: ubuntu-24.04-arm
timeout-minutes: 5
outputs:
php: ${{ steps.filter.outputs.php_any_changed }}
script: ${{ steps.filter.outputs.script_any_changed }}
stylesheet: ${{ steps.filter.outputs.stylesheet_any_changed }}
i18n: ${{ steps.filter.outputs.i18n_any_changed }}
steps:
- uses: actions/checkout@v7
- uses: tj-actions/changed-files@v47
id: filter
with:
files_yaml: |
php:
- includes/**/*.php
- tests/**/*.php
- tests/parser/**/*.txt
- extension.json
- composer.json
- composer.lock
- .phan/config.php
- .github/workflows/ci.yml
script:
- modules/**/*.js
- package.json
- package-lock.json
- eslint.config.js
- .github/workflows/ci.yml
stylesheet:
- modules/**/*.css
- modules/**/*.less
- .stylelintrc.json
- package.json
- package-lock.json
- .github/workflows/ci.yml
i18n:
- i18n/*.json
- package.json
- package-lock.json
- .github/workflows/ci.yml
lint:
needs: changes
if: >-
needs.changes.outputs.php == 'true' ||
needs.changes.outputs.script == 'true' ||
needs.changes.outputs.stylesheet == 'true' ||
needs.changes.outputs.i18n == 'true'
uses: StarCitizenTools/mediawiki-ci-workflows/.github/workflows/lint.yml@main
with:
lint-php: ${{ needs.changes.outputs.php == 'true' }}
lint-js: ${{ needs.changes.outputs.script == 'true' }}
lint-styles: ${{ needs.changes.outputs.stylesheet == 'true' }}
lint-i18n: ${{ needs.changes.outputs.i18n == 'true' }}
runner: ubuntu-24.04-arm
analyze-php:
needs: changes
if: needs.changes.outputs.php == 'true'
uses: StarCitizenTools/mediawiki-ci-workflows/.github/workflows/analyze-php.yml@main
with:
project-type: extension
project-name: FloatingUI
runner: ubuntu-24.04-arm
test-parser:
needs: changes
if: needs.changes.outputs.php == 'true'
uses: StarCitizenTools/mediawiki-ci-workflows/.github/workflows/test-parser.yml@main
with:
project-type: extension
project-name: FloatingUI
runner: ubuntu-24.04-arm