Bump symfony/process from 5.4.40 to 5.4.46 #1135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test LXDMosaic | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache vendor | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-vendor | |
with: | |
path: vendor | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: node_modules/ | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install PHP 7.4 | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update | |
sudo apt-get install -y php7.4 | |
- name: setup lxdmosaic | |
run: sudo sh examples/test_setup.sh | |
- name: Setup LXD | |
run: sudo snap install lxd | |
- name: init lxd | |
run: cat examples/tests_lxd_init.yaml | sudo lxd init --preseed | |
- name: run tests | |
run: /usr/bin/php7.4 -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html=./coverage | |
- name: run phpstan | |
run: /usr/bin/php7.4 vendor/bin/phpstan analyse src --level 1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: test-coverage | |
path: coverage/ | |
retention-days: 1 |