Rearranging cacheing
This commit is contained in:
parent
a16739bb9b
commit
752f354d0b
|
@ -64,17 +64,20 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
||||||
sudo bash ./.github/scripts/install-xenial.sh
|
sudo bash ./.github/scripts/install-xenial.sh
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Run Python tests
|
- name: Run Python tests
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
sudo bash ./.github/scripts/python-pkg-install.sh
|
sudo bash ./.github/scripts/python-pkg-install.sh
|
||||||
sudo bash ./.github/scripts/python-pkg-test.sh
|
sudo bash ./.github/scripts/python-pkg-test.sh
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
|
- name: Run PHP tests
|
||||||
|
run: |
|
||||||
|
composer install --no-progress --dev
|
||||||
|
cd airtime_mvc/tests
|
||||||
|
php ../../vendor/bin/phpunit
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -83,10 +86,3 @@ jobs:
|
||||||
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-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-composer-
|
|
||||||
- name: Run PHP tests
|
|
||||||
run: |
|
|
||||||
composer install --no-progress --dev
|
|
||||||
cd airtime_mvc/tests
|
|
||||||
php ../../vendor/bin/phpunit
|
|
Loading…
Reference in New Issue