Skip to content

Commit dd9d003

Browse files
committed
Update github action versions
1 parent fe386d2 commit dd9d003

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ 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:
1414
php-version: '8.0'
1515
extensions: mbstring, intl
1616
coverage: none
17-
- uses: ramsey/composer-install@v2
17+
- uses: ramsey/composer-install@v3
1818
with:
1919
composer-options: "--ignore-platform-reqs --optimize-autoloader"
2020
- name: Run PHPStan static analysis

.github/workflows/tests-php.yml

Lines changed: 8 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
# ------------------------------------------------------------------------------
@@ -46,14 +33,17 @@ jobs:
4633
echo "SLIC_BIN=${GITHUB_WORKSPACE}/slic/slic" >> $GITHUB_ENV
4734
echo "SLIC_WP_DIR=${GITHUB_WORKSPACE}/slic/_wordpress" >> $GITHUB_ENV
4835
echo "SLIC_WORDPRESS_DOCKERFILE=Dockerfile.base" >> $GITHUB_ENV
36+
4937
- name: Set run context for slic
5038
run: echo "SLIC=1" >> $GITHUB_ENV && echo "CI=1" >> $GITHUB_ENV
5139
- name: Start ssh-agent
5240
run: |
5341
mkdir -p "${HOME}/.ssh";
5442
ssh-agent -a /tmp/ssh_agent.sock;
43+
5544
- name: Export SSH_AUTH_SOCK env var
5645
run: echo "SSH_AUTH_SOCK=/tmp/ssh_agent.sock" >> $GITHUB_ENV
46+
5747
- name: Set up slic for CI
5848
run: |
5949
cd ${GITHUB_WORKSPACE}/..
@@ -65,9 +55,11 @@ jobs:
6555
${SLIC_BIN} debug on
6656
${SLIC_BIN} info
6757
${SLIC_BIN} config
58+
6859
- name: Set up StellarWP Schema
6960
run: |
7061
${SLIC_BIN} use schema
7162
${SLIC_BIN} composer install --ignore-platform-reqs
63+
7264
- name: Run suite tests
7365
run: ${SLIC_BIN} run ${{ matrix.suite }} --ext DotReporter

0 commit comments

Comments
 (0)