77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- php : [ 8.1, 8. 2, 8.3, 8.4 ]
10+ php : [ 8.2, 8.3, 8.4 ]
1111
1212 steps :
1313 - uses : actions/checkout@v4
2424 php_version : ${{ matrix.php }}
2525
2626 - name : Archive build
27- run : mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
27+ run : mkdir /tmp/github-actions/ && tar --exclude=".git" - cvf /tmp/github-actions/build.tar ./
2828
2929 - name : Upload build archive for test runners
3030 uses : actions/upload-artifact@v4
3737 needs : [ composer ]
3838 strategy :
3939 matrix :
40- php : [ 8.1, 8. 2, 8.3, 8.4 ]
40+ php : [ 8.2, 8.3, 8.4 ]
4141
4242 outputs :
4343 coverage : ${{ steps.store-coverage.outputs.coverage_text }}
7272 needs : [ phpunit ]
7373 strategy :
7474 matrix :
75- php : [ 8.1, 8. 2, 8.3, 8.4 ]
75+ php : [ 8.2, 8.3, 8.4 ]
7676
7777 steps :
7878 - uses : actions/checkout@v4
@@ -87,13 +87,16 @@ jobs:
8787
8888 - name : Upload to Codecov
8989 uses : codecov/codecov-action@v5
90+ with :
91+ token : ${{ secrets.CODECOV_TOKEN }}
92+ slug : PhpGt/ProtectedGlobal
9093
9194 phpstan :
9295 runs-on : ubuntu-latest
9396 needs : [ composer ]
9497 strategy :
9598 matrix :
96- php : [ 8.1, 8. 2, 8.3, 8.4 ]
99+ php : [ 8.2, 8.3, 8.4 ]
97100
98101 steps :
99102 - uses : actions/download-artifact@v4
@@ -113,14 +116,18 @@ jobs:
113116 remove_old_artifacts :
114117 runs-on : ubuntu-latest
115118
119+ permissions :
120+ actions : write
121+
116122 steps :
117123 - name : Remove old artifacts for prior workflow runs on this repository
118124 env :
119125 GH_TOKEN : ${{ github.token }}
120126 run : |
121- gh api "/repos/${{ github.repository }}/actions/artifacts?name=build-artifact " | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
127+ gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
122128 while read id
123129 do
124130 echo -n "Deleting artifact ID $id ... "
125131 gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
126132 done <artifact-id-list.txt
133+
0 commit comments