@@ -23,42 +23,43 @@ jobs:
2323 SENTRY_URL : ${{ secrets.SENTRY_URL }}
2424 SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
2525 steps :
26- - uses : actions/checkout@v2
27- - uses : borales/actions-yarn@v3.0.0
28- - uses : actions/setup-node@v2
26+ - uses : actions/checkout@v6
27+ - uses : actions/setup-node@v6
2928 with :
30- node-version : ' 16'
29+ node-version : ' 20'
30+ cache : ' yarn'
31+ cache-dependency-path : client/yarn.lock
3132 - uses : shivammathur/setup-php@v2
3233 with :
33- php-version : ' 8.2 '
34+ php-version : ' 8.5 '
3435 - name : ' test node'
3536 run : node -v
3637 - name : ' install & build'
3738 run : |
3839 sudo composer install
39- sed -i 's/GOOGLE_ANALITICS_TOKEN/${{ secrets.GOOGLE_ANALITICS_TOKEN }}/g' resources/views/stubs/production-index.blade.stub
40- sudo cp -f resources/views/stubs/production-index.blade.stub vendor/laravel-enso/core/stubs
4140 cd client
4241 cp .env.example .env
4342 yarn install
4443 yarn build
4544 - name : Archive production artifacts
46- uses : actions/upload-artifact@v4
45+ uses : actions/upload-artifact@v7
4746 with :
4847 name : resources
48+ if-no-files-found : error
49+ include-hidden-files : true
4950 path : |
50- public/css /
51- public/js /
51+ public/assets /
52+ public/.vite /
5253 public/images/
5354 resources/views
5455
5556 phpunit :
5657 runs-on : ubuntu-latest
5758 steps :
58- - uses : actions/checkout@v2
59+ - uses : actions/checkout@v6
5960 - uses : shivammathur/setup-php@v2
6061 with :
61- php-version : ' 8.2 '
62+ php-version : ' 8.5 '
6263 - name : ' PhpUnit'
6364 run : |
6465 sudo composer install
@@ -67,10 +68,10 @@ jobs:
6768 phpcpd :
6869 runs-on : ubuntu-latest
6970 steps :
70- - uses : actions/checkout@v2
71+ - uses : actions/checkout@v6
7172 - uses : shivammathur/setup-php@v2
7273 with :
73- php-version : ' 8.2 '
74+ php-version : ' 8.5 '
7475 - name : ' Run Phpcpd'
7576 run : |
7677 sudo composer install
@@ -80,10 +81,10 @@ jobs:
8081 php-insights :
8182 runs-on : ubuntu-latest
8283 steps :
83- - uses : actions/checkout@v2
84+ - uses : actions/checkout@v6
8485 - uses : shivammathur/setup-php@v2
8586 with :
86- php-version : ' 8.2 '
87+ php-version : ' 8.5 '
8788 - name : ' Run php-insight'
8889 run : |
8990 sudo composer install
@@ -92,10 +93,10 @@ jobs:
9293 security :
9394 runs-on : ubuntu-latest
9495 steps :
95- - uses : actions/checkout@v2
96+ - uses : actions/checkout@v6
9697 - uses : shivammathur/setup-php@v2
9798 with :
98- php-version : ' 8.2 '
99+ php-version : ' 8.5 '
99100 - name : ' Run php-insight'
100101 run : |
101102 PHP_SC_VERSION=$(curl -s "https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/;s/^v//')
@@ -122,10 +123,10 @@ jobs:
122123 --health-timeout=5s
123124 --health-retries=10
124125 steps :
125- - uses : actions/checkout@v4
126+ - uses : actions/checkout@v6
126127 - uses : shivammathur/setup-php@v2
127128 with :
128- php-version : ' 8.2 '
129+ php-version : ' 8.5 '
129130 tools : composer:v2
130131 - name : Install dependencies
131132 run : composer install --no-interaction --prefer-dist --no-progress
@@ -144,7 +145,7 @@ jobs:
144145 if : ${{ github.event_name == 'deployment' || github.event_name == 'push' }}
145146 needs : [phpunit, phpcpd, migration, yarn, security, php-insights]
146147 steps :
147- - uses : actions/checkout@v2
148+ - uses : actions/checkout@v6
148149 - name : ' Trig envoyer'
149150 run : |
150151 curl ${{ secrets.DEPLOY_WEBHOOK }}
0 commit comments