mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add cache busting support to gh action (#12473)
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -88,17 +88,17 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-composer-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-composer-
|
${{ runner.os }}-composer-${{ secrets.CACHE_VERSION }}-
|
||||||
-
|
-
|
||||||
name: Cache pip
|
name: Cache pip
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-${{ secrets.CACHE_VERSION }}-
|
||||||
-
|
-
|
||||||
name: Install packages
|
name: Install packages
|
||||||
run: |
|
run: |
|
||||||
@@ -107,8 +107,8 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Pip install
|
name: Pip install
|
||||||
run: |
|
run: |
|
||||||
pip3 install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip3 install --user snmpsim pylint python-memcached mysqlclient --upgrade
|
python3 -m pip install --upgrade --user snmpsim pylint python-memcached mysqlclient
|
||||||
-
|
-
|
||||||
name: Composer validate
|
name: Composer validate
|
||||||
run: |
|
run: |
|
||||||
@@ -153,7 +153,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PORT: ${{ job.services.mysql.ports[3306] }}
|
PORT: ${{ job.services.mysql.ports[3306] }}
|
||||||
run: |
|
run: |
|
||||||
mysql -h"127.0.0.1" -P"$PORT" --user=librenms --password=librenms -e 'ALTER DATABASE librenms_phpunit_78hunjuybybh CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
|
mysql -h"127.0.0.1" -P"$PORT" --user=librenms --password=librenms -e 'ALTER DATABASE librenms_phpunit_78hunjuybybh CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
|
||||||
-
|
-
|
||||||
name: Artisan serve
|
name: Artisan serve
|
||||||
if: matrix.skip-web-check != '1'
|
if: matrix.skip-web-check != '1'
|
||||||
|
Reference in New Issue
Block a user