Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Jan 20, 2024
1 parent 2dcae58 commit 6a2fbc9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 38 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,8 @@ jobs:
moodle-branch: 'master'
database: 'pgsql'
- php: '8.1'
moodle-branch: 'master'
database: 'mariadb'
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_403_STABLE'
database: 'mariadb'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_401_STABLE'
database: 'mariadb'

steps:
- name: Check out repository code
Expand Down Expand Up @@ -78,13 +66,9 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phplint

# - name: PHP Copy/Paste Detector
#if: ${{ always() }}
#run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
- name: PHP Copy/Paste Detector
if: ${{ always() }}
run: moodle-plugin-ci phpmd
run: moodle-plugin-ci phpcpd

- name: Moodle Code Checker
if: ${{ always() }}
Expand All @@ -94,26 +78,7 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phpdoc

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ matrix.moodle-branch == 'MOODLE_403_STABLE' }}
run: moodle-plugin-ci grunt

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
7 changes: 7 additions & 0 deletions source/file/templates/media_resource.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
Example context (json):
{
canedit: true,
id: 2,
resource: {
title: "title",
name: "name",
desciption: "big and blue"
}
}

}}
Expand Down
2 changes: 1 addition & 1 deletion source/streamio/classes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function request($endpoint, $params = [], $method = 'GET') {
/**
* Create upload token for Streamio
*
* @param ?array $params Fields to set for video
* @param null|array $params Fields to set for video
* @return string
*/
public function create_token(?array $params = []) {
Expand Down

0 comments on commit 6a2fbc9

Please sign in to comment.