Skip to content

Commit cae771f

Browse files
committed
try to avoid error code 137, part 3
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
1 parent 5760fd5 commit cae771f

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/run-unit-tests.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,35 @@ jobs:
2525
repository: froxlor/froxlor
2626
path: froxlor
2727

28+
- name: Verify CI paths
29+
run: |
30+
pwd
31+
test -d "$FROXLOR_APP_DIR"
32+
test -d "$FROXLOR_FRAMEWORK_DIR"
33+
2834
- name: Use local framework checkout
2935
working-directory: froxlor
3036
run: |
3137
php -r '$file = "composer.json"; $json = json_decode(file_get_contents($file), true, 512, JSON_THROW_ON_ERROR); $json["repositories"] = [["name" => "framework", "type" => "path", "url" => "../framework", "options" => ["reference" => "config", "symlink" => true]]]; file_put_contents($file, json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL);'
3238
33-
- name: Verify CI paths
34-
run: |
35-
pwd
36-
ls -la "$FROXLOR_APP_DIR"
37-
test -d "$FROXLOR_FRAMEWORK_DIR"
39+
- name: Install PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: "8.5"
43+
coverage: none
44+
tools: composer:v2
45+
46+
- name: Cache composer downloads
47+
uses: actions/cache@v4
48+
with:
49+
path: ~/.composer/cache/files
50+
key: composer-${{ runner.os }}-${{ hashFiles('froxlor/composer.json', 'framework/composer.json') }}
51+
restore-keys: composer-${{ runner.os }}-
3852

39-
- name: Add swap space
53+
- name: Install dependencies
54+
working-directory: froxlor
4055
run: |
41-
sudo swapoff /mnt/froxlor-swapfile 2>/dev/null || true
42-
sudo rm -f /mnt/froxlor-swapfile
43-
sudo fallocate -l 4G /mnt/froxlor-swapfile
44-
sudo chmod 600 /mnt/froxlor-swapfile
45-
sudo mkswap /mnt/froxlor-swapfile
46-
sudo swapon /mnt/froxlor-swapfile
47-
free -h
56+
composer update --no-interaction --prefer-dist --no-progress
4857
4958
- name: Start docker stack
5059
working-directory: framework
@@ -77,22 +86,13 @@ jobs:
7786
echo "DEV_SEED_DEVELOPMENT_DATA=true"
7887
} >> .env
7988
80-
- name: Install dependencies
81-
working-directory: framework
82-
run: |
83-
docker compose -f docker-compose.ci.yml exec -T froxlor sh -lc '
84-
git config --global --add safe.directory /var/www/html/froxlor &&
85-
git config --global --add safe.directory /var/www/html/framework &&
86-
composer update --working-dir=/var/www/html/froxlor --no-interaction --prefer-dist --no-progress
87-
'
88-
8989
- name: Fresh database with seeders
9090
working-directory: framework
9191
run: docker compose -f docker-compose.ci.yml exec -T froxlor php /var/www/html/froxlor/artisan migrate:fresh --seed --force
9292

9393
- name: Run tests
9494
working-directory: framework
95-
run: docker compose -f docker-compose.ci.yml exec -T froxlor php /var/www/html/froxlor/artisan test
95+
run: docker compose -f docker-compose.ci.yml exec -T froxlor php /var/www/html/froxlor/artisan test /var/www/html/framework/packages/core/tests
9696

9797
- name: Docker logs on failure
9898
working-directory: framework

0 commit comments

Comments
 (0)