Skip to content

Commit b8c451a

Browse files
committed
ci: bump and improve GitHub actions
1 parent b545392 commit b8c451a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
run: composer validate
2222
- name: Get Composer Cache Directory
2323
id: composer-cache
24-
run: |
25-
echo "::set-output name=dir::$(composer config cache-files-dir)"
24+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2625
- name: Restore cache
2726
uses: actions/cache@v3
2827
with:
@@ -46,8 +45,7 @@ jobs:
4645
tools: composer:v2
4746
- name: Get Composer Cache Directory
4847
id: composer-cache
49-
run: |
50-
echo "::set-output name=dir::$(composer config cache-files-dir)"
48+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5149
- name: Restore cache
5250
uses: actions/cache@v3
5351
with:

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929
coverage: pcov
3030
- name: Get Composer Cache Directory
3131
id: composer-cache
32-
run: |
33-
echo "::set-output name=dir::$(composer config cache-files-dir)"
32+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3433
- name: Restore cache
3534
uses: actions/cache@v3
3635
with:
@@ -43,7 +42,7 @@ jobs:
4342
- name: Run php tests
4443
run: composer run phpunit
4544
- name: Send coverage
46-
uses: codecov/codecov-action@v1
45+
uses: codecov/codecov-action@v3
4746

4847
test-phar:
4948
name: Run command line tests on the phar with php ${{ matrix.php-version }} on ${{ matrix.os }}
@@ -97,8 +96,7 @@ jobs:
9796
php-version: ${{ matrix.php-version }}
9897
- name: Get Composer Cache Directory
9998
id: composer-cache
100-
run: |
101-
echo "::set-output name=dir::$(composer config cache-files-dir)"
99+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
102100
- name: Restore cache
103101
uses: actions/cache@v3
104102
with:
@@ -132,8 +130,7 @@ jobs:
132130
php-version: ${{ matrix.php-version }}
133131
- name: Get Composer Cache Directory
134132
id: composer-cache
135-
run: |
136-
echo "::set-output name=dir::$(composer config cache-files-dir)"
133+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
137134
- name: Restore cache
138135
uses: actions/cache@v3
139136
with:

0 commit comments

Comments
 (0)