|
1 |
| -name: Build and Dist |
| 1 | +name: PHP Composer |
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: [ "master" ] |
6 |
| - pull_request: |
7 |
| - branches: [ "master" ] |
| 4 | + push: |
| 5 | + branches: [ "master" ] |
| 6 | + pull_request: |
| 7 | + branches: [ "master" ] |
8 | 8 |
|
9 | 9 | permissions:
|
10 |
| - contents: read |
| 10 | + contents: read |
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - build: |
| 13 | + build: |
14 | 14 |
|
15 |
| - runs-on: ubuntu-latest |
| 15 | + runs-on: ubuntu-latest |
16 | 16 |
|
17 | 17 | steps:
|
18 |
| - - uses: actions/checkout@v4 |
19 |
| - - uses: actions/setup-node@v4 |
| 18 | + - uses: actions/checkout@v4 |
20 | 19 |
|
21 |
| - - name: Validate composer.json and composer.lock |
22 |
| - run: composer validate --strict |
| 20 | + - name: Validate composer.json and composer.lock |
| 21 | + run: composer validate --strict |
23 | 22 |
|
24 |
| - - name: Cache Composer packages |
25 |
| - id: composer-cache |
26 |
| - uses: actions/cache@v3 |
27 |
| - with: |
28 |
| - path: vendor |
29 |
| - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} |
30 |
| - restore-keys: | |
31 |
| - ${{ runner.os }}-php- |
| 23 | + - name: Cache Composer packages |
| 24 | + id: composer-cache |
| 25 | + uses: actions/cache@v3 |
| 26 | + with: |
| 27 | + path: vendor |
| 28 | + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} |
| 29 | + restore-keys: | |
| 30 | + ${{ runner.os }}-php- |
32 | 31 |
|
33 |
| - - name: Install Composer dependencies |
34 |
| - run: composer install --prefer-dist --no-progress |
| 32 | + - name: Install dependencies |
| 33 | + run: composer install --prefer-dist --no-progress |
35 | 34 |
|
36 |
| - # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" |
37 |
| - # Docs: https://getcomposer.org/doc/articles/scripts.md |
| 35 | + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" |
| 36 | + # Docs: https://getcomposer.org/doc/articles/scripts.md |
38 | 37 |
|
39 |
| - # - name: Run test suite |
40 |
| - # run: composer run-script test |
| 38 | + # - name: Run test suite |
| 39 | + # run: composer run-script test |
41 | 40 |
|
42 |
| - - name: Install npm dependencies |
43 |
| - run: npm install |
| 41 | + - name: Install npm dependencies |
| 42 | + run: npm install |
44 | 43 |
|
45 |
| - - name: Install sass |
46 |
| - run: npm install -g sass |
| 44 | + - name: Install sass |
| 45 | + run: npm install -g sass |
47 | 46 |
|
48 |
| - - name: Compile SCSS |
49 |
| - run: npm run sass |
| 47 | + - name: Compile SCSS |
| 48 | + run: npm run sass |
50 | 49 |
|
51 |
| - - name: Bundle scripts |
52 |
| - run: npm run webpack |
| 50 | + - name: Bundle scripts |
| 51 | + run: npm run webpack |
0 commit comments