File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ php-version : [ '5.6', '7.4', '8.4' ]
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ${{ matrix.php-version }}
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ' 16'
27+ cache : ' npm'
28+
29+ - name : Cache Composer
30+ uses : actions/cache@v4
31+ with :
32+ path : ~/.composer/cache
33+ key : ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-composer-${{ matrix.php }}-
36+
37+ - name : Install dependencies
38+ run : npm ci
39+
40+ - name : Run linting
41+ run : npm run lint
42+
43+ - name : Run build
44+ run : npm run build
You can’t perform that action at this time.
0 commit comments