Skip to content

Commit 5ddff35

Browse files
committed
Update actions, remove useless composer cache step
1 parent ccd8890 commit 5ddff35

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111
- name: Configure PHP environment
1212
uses: shivammathur/setup-php@v2
1313
with:

.github/workflows/tests-php.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout the repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
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@v4
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: get-composer-cache-dir
32-
run: |
33-
echo "::set-output name=dir::$(composer config cache-files-dir)"
34-
- uses: actions/cache@v2
35-
id: composer-cache
36-
with:
37-
path: ${{ steps.get-composer-cache-dir.outputs.dir }}
38-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
39-
restore-keys: |
40-
${{ runner.os }}-composer-
27+
4128
# ------------------------------------------------------------------------------
4229
# Initialize slic
4330
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)