Skip to content

Commit 97f3c8d

Browse files
[ Task ] Update CI (#70)
* bump GH action versions * add macos to test matrix * bump ubuntu version * formatting
1 parent f9aeed6 commit 97f3c8d

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.github/workflows/larastan.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.operating-system }}
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
@@ -24,7 +24,7 @@ jobs:
2424
id: composer-cache
2525
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2626
- name: Setup composer cache
27-
uses: actions/cache@v2
27+
uses: actions/cache@v4
2828
with:
2929
path: ${{ steps.composer-cache.outputs.dir }}
3030
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/pint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.operating-system }}
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
@@ -27,7 +27,7 @@ jobs:
2727
id: composer-cache
2828
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2929
- name: Setup composer cache
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
with:
3232
path: ${{ steps.composer-cache.outputs.dir }}
3333
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/publish-phar.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
workflow_dispatch:
77
inputs:
88
tag:
9-
description: 'Tag release version'
9+
description: "Tag release version"
1010
required: true
1111

1212
jobs:
1313
publish:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-latest
1515

1616
name: Release PHAR
1717

@@ -21,11 +21,11 @@ jobs:
2121
run: |
2222
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
2323
GITHUB_REF=${{ github.event.inputs.tag }}
24-
fi
24+
fi
2525
echo "tag=${GITHUB_REF##*v}" >> "$GITHUB_OUTPUT"
2626
2727
- name: Checkout the code
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
ref: v${{ steps.tag.outputs.tag }}
3131

@@ -45,7 +45,7 @@ jobs:
4545
run: ./whisky app:build whisky.phar --build-version=${{ steps.tag.outputs.tag }}
4646

4747
- name: Upload the PHAR artifact
48-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
4949
with:
5050
name: whisky.phar
5151
path: builds/whisky.phar

.github/workflows/test.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
operating-system:
99
- ubuntu-latest
1010
- windows-latest
11+
- macos-latest
1112
php-version:
1213
- "8.1"
1314
- "8.2"
@@ -16,7 +17,7 @@ jobs:
1617
runs-on: ${{ matrix.operating-system }}
1718
steps:
1819
- name: Checkout
19-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2021
- name: Setup PHP
2122
uses: shivammathur/setup-php@v2
2223
with:
@@ -27,7 +28,7 @@ jobs:
2728
id: composer-cache
2829
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2930
- name: Setup composer cache
30-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3132
with:
3233
path: ${{ steps.composer-cache.outputs.dir }}
3334
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/types.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.operating-system }}
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
@@ -24,7 +24,7 @@ jobs:
2424
id: composer-cache
2525
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2626
- name: Setup composer cache
27-
uses: actions/cache@v2
27+
uses: actions/cache@v4
2828
with:
2929
path: ${{ steps.composer-cache.outputs.dir }}
3030
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

0 commit comments

Comments
 (0)