Skip to content

Commit

Permalink
update cache definition
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Sep 24, 2023
1 parent 790152b commit b874645
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/integration_identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.php_cs.cache
${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-cache-${{ matrix.php_version }}-${{ hashFiles('**.composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php_version }}-
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
Expand All @@ -34,10 +36,12 @@ jobs:
coverage: none
- run: composer install --prefer-dist --no-interaction --no-progress
- name: Restore devstack cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /opt/stack/
key: ${{ runner.os }}-oscache-${{ matrix.openstack_version }}
path: |
/opt/stack/
~/devstack/
key: ${{ runner.os }}-openstack-${{ matrix.openstack_version }}-{{env.GITHUB_WORKFLOW}}
- name: Deploy devstack
uses: EmilienM/devstack-action@v0.11
with:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/integration_object_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.php_cs.cache
${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-cache-${{ matrix.php_version }}-${{ hashFiles('**.composer.lock') }}
key: ${{ runner.os }}-composer-${{ matrix.php_version }}-${{ hashFiles('**.composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php_version }}-
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
Expand All @@ -34,10 +36,12 @@ jobs:
coverage: none
- run: composer install --prefer-dist --no-interaction --no-progress
- name: Restore devstack cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /opt/stack/
key: ${{ runner.os }}-oscache-${{ matrix.openstack_version }}
path: |
/opt/stack/
~/devstack/
key: ${{ runner.os }}-openstack-${{ matrix.openstack_version }}-{{env.GITHUB_WORKFLOW}}
- name: Deploy devstack
uses: EmilienM/devstack-action@v0.11
with:
Expand Down

0 comments on commit b874645

Please sign in to comment.