Skip to content
Draft

test #323

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 1 addition & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: collect-tests
run: |
# Get all the test files without extension.
echo "matrix=$(cd local_ci/tests && find . -name '*.bats' -not -path '*/libs/*' -exec basename {} .bats ';' | \
echo "matrix=$(cd local_ci/tests && find . -name 'git_sync_two_branches.bats' -not -path '*/libs/*' -exec basename {} .bats ';' | \
jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT

test:
Expand Down Expand Up @@ -47,16 +47,6 @@ jobs:
git config --global user.email "local_ci@moodle.com"
git config --global user.name "Local CI"

- name: Setting up DB mysql
uses: moodlehq/mysql-action@v1
with:
collation server: utf8mb4_bin
mysql version: 8.0
mysql root password: test
use tmpfs: true
tmpfs size: '1024M'
extra conf: --skip-log-bin

- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
Expand All @@ -65,17 +55,6 @@ jobs:
tools: composer
coverage: none

- name: Configuring node & npm
uses: actions/setup-node@v4
with:
node-version-file: 'moodle/.nvmrc'

- name: Installing composer and node stuff
run: |
cd local_ci
composer install
npm install

- name: Setup Bats
uses: bats-core/bats-action@2.0.0
with:
Expand Down Expand Up @@ -137,16 +116,6 @@ jobs:
git config --global user.email "local_ci@moodle.com"
git config --global user.name "Local CI"

- name: Setting up DB mysql
uses: moodlehq/mysql-action@v1
with:
collation server: utf8mb4_bin
mysql version: 8.0
mysql root password: test
use tmpfs: true
tmpfs size: '1024M'
extra conf: --skip-log-bin

- name: Setting up PHP 8.3
uses: shivammathur/setup-php@v2
with:
Expand All @@ -155,17 +124,6 @@ jobs:
tools: composer
coverage: none

- name: Configuring node & npm
uses: actions/setup-node@v4
with:
node-version-file: 'moodle/.nvmrc'

- name: Installing composer and node stuff
run: |
cd local_ci
composer install
npm install

- name: Setup Bats
uses: bats-core/bats-action@2.0.0
with:
Expand Down