Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Nov 19, 2024
1 parent 87c1bf8 commit 6950feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
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 "[email protected]"
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/[email protected]
with:
Expand Down Expand Up @@ -137,16 +116,6 @@ jobs:
git config --global user.email "[email protected]"
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/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions tests/git_sync_two_branches.bats
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ teardown() {
export target=local_ci_git_sync_main

run git_sync_two_branches/git_sync_two_branches.sh
echo $output

# Assert result.
assert_success
Expand Down

0 comments on commit 6950feb

Please sign in to comment.