forked from ProfessionalWiki/setup-mediawiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (33 loc) · 1.08 KB
/
action.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
37
name: 'Setup MediaWiki Action'
author: Jeroen De Dauw
description: 'Downloads and installs MediaWiki into mediawiki/ so tests and CI can be run. Includes caching'
inputs:
version:
description: 'MediaWiki version. Needs to be available in git. Examples: master, REL1_35, 1.34.2'
required: false
default: 'master'
extension:
description: 'Name of MediaWiki extension to LOAD in LocalSettings. This action does not install the extension.'
required: true
runs:
using: 'composite'
steps:
- name: Cache MediaWiki
id: cache-mediawiki
uses: actions/cache@v2
with:
path: |
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mediawiki-cache
- name: Cache Composer cache
uses: actions/cache@v2
with:
path: ~/.composer/cache
key: composer-cache
- name: Install MediaWiki
shell: bash
if: steps.cache-mediawiki.outputs.cache-hit != 'true'
working-directory: ~
run: ${{ github.action_path }}/installMediaWiki.sh ${{ inputs.version }} ${{ inputs.extension }}