Skip to content

Commit 51d9327

Browse files
committed
slic should run with PHP 7.4 guaranteed and bump action versions. Remove useless composer cache step
1 parent e5dcac4 commit 51d9327

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/tests-php.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout the repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 1000
1616
submodules: recursive
1717
# ------------------------------------------------------------------------------
1818
# Checkout slic
1919
# ------------------------------------------------------------------------------
2020
- name: Checkout slic
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v6
2222
with:
2323
repository: stellarwp/slic
2424
ref: main
2525
path: slic
2626
fetch-depth: 1
27-
# ------------------------------------------------------------------------------
28-
# Prepare our composer cache directory
29-
# ------------------------------------------------------------------------------
30-
- name: Get Composer Cache Directory
31-
id: composer-cache
32-
run: |
33-
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34-
- uses: actions/cache@v4
35-
with:
36-
path: ${{ steps.composer-cache.outputs.dir }}
37-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-composer-
27+
4028
# ------------------------------------------------------------------------------
4129
# Initialize slic
4230
# ------------------------------------------------------------------------------
@@ -62,6 +50,7 @@ jobs:
6250
${SLIC_BIN} build-subdir off
6351
${SLIC_BIN} xdebug off
6452
${SLIC_BIN} debug on
53+
${SLIC_BIN} php-version set 7.4 --skip-rebuild
6554
${SLIC_BIN} info
6655
${SLIC_BIN} config
6756
- name: Set up StellarWP DB

0 commit comments

Comments
 (0)