Skip to content

Commit 833abd9

Browse files
authored
Update workflow scripts (#64)
Update workflow scripts
1 parent 24f5d23 commit 833abd9

File tree

2 files changed

+4
-15
lines changed

2 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@v3
1212
- name: WordPress Plugin Deploy
1313
uses: 10up/action-wordpress-plugin-deploy@master
1414
env:

.github/workflows/phpcs.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,15 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v2
8+
uses: actions/checkout@v3
99
- name: Setup PHP
1010
uses: shivammathur/setup-php@v2
1111
with:
1212
php-version: '7.4'
1313
coverage: none
1414
tools: composer, cs2pr
15-
- name: Get Composer cache directory
16-
id: composer-cache
17-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
18-
- name: Setup cache
19-
uses: pat-s/[email protected]
20-
with:
21-
path: ${{ steps.composer-cache.outputs.dir }}
22-
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
23-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
24-
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25-
restore-keys: ${{ runner.os }}-composer-
26-
- name: Install dependencies
27-
run: composer install --prefer-dist --no-progress
15+
- name: Install Composer dependencies for PHP
16+
uses: "ramsey/composer-install@v2"
2817
- name: Detect coding standard violations
2918
run: composer lint
3019

0 commit comments

Comments
 (0)