Skip to content

fix: Improve wording, styling and error handling of the auto updater #1034

fix: Improve wording, styling and error handling of the auto updater

fix: Improve wording, styling and error handling of the auto updater #1034

Workflow file for this run

name: Php Unit
on:
push:
permissions:
contents: read
jobs:
php:
strategy:
matrix:
php: [ '7.4', '8.0', '8.1', '8.2' ]
mysql: [ 'pkgs.mysql80' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Install devenv.sh
run: nix-env -if https://github.com/cachix/devenv/tarball/main
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- run: |
cat > devenv.local.nix << EOF
{ pkgs, lib, config, ... }:
{
languages.php.version = "${{ matrix.php }}";
services.mysql.package = ${{ matrix.mysql }};
}
EOF
- run: cat devenv.local.nix
- run: devenv shell info-setup
- run: sudo mount -t tmpfs tmpfs $(pwd)/.devenv/profile/lib/mysql -o size=4G
- run: devenv up &
- run: devenv shell composer update laminas/laminas-code
- run: devenv shell test-phpunit
mysql:
strategy:
matrix:
php: [ '8.1' ]
mysql: [ 'pkgs.mysql80', 'pkgs.mariadb', 'pkgs.mariadb_104', 'config.nur.repos.pascalthesing.mysql57' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Use Shopware Cache
uses: cachix/cachix-action@v12
with:
name: shopware
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix-env -if https://github.com/cachix/devenv/tarball/main
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- run: |
cat > devenv.local.nix << EOF
{ pkgs, lib, config, ... }:
{
languages.php.version = "${{ matrix.php }}";
services.mysql.package = ${{ matrix.mysql }};
}
EOF
- run: cat devenv.local.nix
- run: devenv shell info-setup
- run: sudo mount -t tmpfs tmpfs $(pwd)/.devenv/profile/lib/mysql -o size=4G
- run: devenv up &
- run: devenv shell ./.github/check-mysql.sh
- run: devenv shell test-phpunit
Code-Coverage:
runs-on: ubuntu-latest
env:
TESTSUITE: 'all'
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Use Shopware Cache
uses: cachix/cachix-action@v12
with:
name: shopware
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix-env -if https://github.com/cachix/devenv/tarball/main
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- run: devenv shell info-setup
- run: sudo mount -t tmpfs tmpfs $(pwd)/.devenv/profile/lib/mysql -o size=4G
- run: devenv up &
- run: devenv shell ./.github/check-mysql.sh
- run: devenv shell test-phpunit-coverage-statistic
es:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Use Shopware Cache
uses: cachix/cachix-action@v12
with:
name: shopware
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix-env -if https://github.com/cachix/devenv/tarball/main
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- run: |
cat > devenv.local.nix << EOF
{ pkgs, lib, config, ... }:
{
services.elasticsearch.enable = true;
env.ELASTICSEARCH_HOST = lib.mkDefault "localhost:9200";
}
EOF
- run: devenv shell info-setup
- run: sudo mount -t tmpfs tmpfs $(pwd)/.devenv/profile/lib/mysql -o size=4G
- run: devenv up &
- run: devenv shell ./.github/check-mysql.sh
- run: devenv shell init-shopware
- run: devenv shell test-phpunit-elasticsearch