Add reusable workflow for moodle release

This commit is contained in:
Anupama Dharmajan
2022-01-13 16:05:47 +11:00
parent 99e43b6c76
commit 7bf8b9a748
4 changed files with 23 additions and 51 deletions

20
.github/workflows/moodle-release.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
#
# Whenever version.php is changed, add the latest version
# to the Moodle Plugins directory at https://moodle.org/plugins
#
name: Releasing in the Plugins directory
on:
push:
branches:
- MOODLE_32_STABLE
paths:
- 'version.php'
jobs:
workflow_group_27_to_32_release:
uses: catalyst/catalyst-moodle-workflows/.github/workflows/group-27-to-32-release.yml@main
with:
plugin_name: auth_enrolkey
secrets:
moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }}

View File

@@ -1,47 +0,0 @@
language: php
cache:
directories:
- $HOME/.composer/cache
addons:
postgresql: "9.5"
services:
- mysql
php:
- 7.0
env:
- DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
matrix:
include:
- php: 5.6
env: DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
- php: 5.6
env: DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE
before_install:
- phpenv config-rm xdebug.ini
- cd ../..
- composer selfupdate
- composer create-project -n --no-dev moodlehq/moodle-plugin-ci ci ^1
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install:
- moodle-plugin-ci install -vvv
script:
- moodle-plugin-ci validate
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker
- moodle-plugin-ci csslint
- moodle-plugin-ci shifter
- moodle-plugin-ci jshint
- moodle-plugin-ci phpunit

View File

@@ -1,6 +1,4 @@
<a href="https://travis-ci.org/catalyst/moodle-auth_outage">
<img src="https://travis-ci.org/catalyst/moodle-auth_outage.svg?branch=MOODLE_32_STABLE">
</a>
![Build Status](https://github.com/catalyst/moodle-auth_outage/actions/workflows/ci.yml/badge.svg?branch=MOODLE_32_STABLE)(https://github.com/catalyst/moodle-auth_outage/actions)
# Moodle Outage manager plugin

View File

@@ -28,7 +28,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = "auth_outage";
$plugin->version = 2018062500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2018062501; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = '1.0.9'; // Human-readable release information.
$plugin->requires = 2014051200; // Requires Moodle 2.7 or later. Moodle 3.0 or later recommended.
$plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments!
$plugin->supported = [27, 32]; // A range of branch numbers of supported moodle versions.