Skip to content

Commit 2f23508

Browse files
authored
Optimize GitHub Actions workflows (#2123)
1 parent 078f9c4 commit 2f23508

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: New tag
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@master
11+
- uses: actions/checkout@v5
1212
- name: Install SVN
1313
run: |
1414
sudo apt-get update

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v5
2020
with:
21-
node-version: '18'
21+
node-version: 'lts/*'
2222

2323
- name: Install dependencies
2424
run: npm install

.github/workflows/phpcs.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,7 @@ jobs:
1616
php-version: '7.4'
1717
coverage: none
1818
tools: composer, cs2pr
19-
- name: Get Composer cache directory
20-
id: composer-cache
21-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
22-
- name: Setup cache
23-
uses: pat-s/[email protected]
24-
with:
25-
path: ${{ steps.composer-cache.outputs.dir }}
26-
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
27-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
28-
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
29-
restore-keys: ${{ runner.os }}-composer-
30-
- name: Install dependencies
31-
run: composer install --prefer-dist --no-progress
19+
- name: Install Composer dependencies for PHP
20+
uses: ramsey/composer-install@v3
3221
- name: Detect coding standard violations
3322
run: ./vendor/bin/phpcs

0 commit comments

Comments
 (0)