Skip to content

Commit

Permalink
try to fix ci p.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Apr 29, 2023
1 parent 8b5f1fa commit bd58e06
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
strategy:
fail-fast: false
matrix:
ci-version: ['3.4.11']
php: ['7.4']
moodle-branch: ['MOODLE_400_STABLE']
database: [pgsql]
Expand All @@ -46,25 +45,25 @@ jobs:
uses: actions/cache@v3
with:
path: ./ci
key: composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}-${{ matrix.ci-version }}-cache
key: composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}-cache
restore-keys: |
composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
- name: npm cache
uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
key: node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
restore-keys: |
node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
- name: Check if the ci directory is empty
id: cache-checker
run: echo "count=$(ls ./ci | wc -l)" >> $GITHUB_OUTPUT

- name: Initialise moodle-plugin-ci
if: ${{ steps.cache-checker.outputs.count == 0 }}
run: composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ${{ matrix.ci-version }}
run: composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3.4.11

-name: Export moodle-plugin-ci pathes
run: |
Expand Down Expand Up @@ -169,25 +168,25 @@ jobs:
uses: actions/cache@v3
with:
path: ./ci
key: composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}-${{ matrix.ci-version }}-cache
key: composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}-cache
restore-keys: |
composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
composer-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
- name: npm cache
uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
key: node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
restore-keys: |
node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-${{ matrix.ci-version }}-cache
node-${{ matrix.php }}-${{ matrix.moodle-branch }}-${{ matrix.database }}}-cache
- name: Check if the ci directory is empty
id: cache-checker
run: echo "count=$(ls ./ci | wc -l)" >> $GITHUB_OUTPUT

- name: Initialise moodle-plugin-ci
if: ${{ steps.cache-checker.outputs.count == 0 }}
run: composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ${{ matrix.ci-version }}
run: composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3.4.11

-name: Export moodle-plugin-ci pathes
run: |
Expand Down

0 comments on commit bd58e06

Please sign in to comment.