Alertmanager Transport - Try all nodes #5798
Workflow file for this run
This file contains hidden or 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: Web | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| jobs: | |
| dusk-php: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout-cone-mode: false | |
| sparse-checkout: | | |
| /* | |
| !/tests/data/ | |
| !/tests/snmpsim/ | |
| !/mibs/ | |
| !/doc/ | |
| - name: Init env | |
| run: | | |
| cat > .env <<EOL | |
| APP_KEY= | |
| APP_URL=http://127.0.0.1:8000 | |
| APP_ENV=testing | |
| DB_HOST=127.0.0.1 | |
| DB_DATABASE=librenms_phpunit_78hunjuybybh | |
| DB_USERNAME=root | |
| DB_PASSWORD=root | |
| DB_TEST_HOST=127.0.0.1 | |
| DB_TEST_DATABASE=librenms_phpunit_78hunjuybybh | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD=root | |
| MAIL_MAILER=log | |
| EOL | |
| - name: Create Database | |
| run: | | |
| sudo systemctl start mysql | |
| mysql --user="root" --password="root" -e "CREATE DATABASE \`librenms_phpunit_78hunjuybybh\` character set UTF8mb4 collate utf8mb4_bin;" | |
| - name: Setup SQLite | |
| run: sqlite3 database/testing.sqlite "" | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache composer | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer-${{ secrets.CACHE_VERSION }}- | |
| - name: Install Composer Dependencies | |
| run: composer install --no-progress --prefer-dist --optimize-autoloader | |
| - name: Generate Application Key | |
| run: php artisan key:generate | |
| - name: Migrate Database | |
| run: php artisan migrate --database=testing | |
| - name: Upgrade Chrome Driver | |
| run: php artisan dusk:chrome-driver --detect | |
| - name: Start Chrome Driver | |
| run: ./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 & | |
| - name: Run Laravel Server | |
| run: php artisan serve --no-reload & | |
| - name: Run Dusk Tests | |
| run: php artisan dusk | |
| - name: Upload Screenshots | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots | |
| path: tests/Browser/screenshots | |
| - name: Upload Console Logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: console | |
| path: tests/Browser/console |