This repository was archived by the owner on Jan 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +82
-0
lines changed Expand file tree Collapse file tree 1 file changed +82
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint & Test
2+
3+ on :
4+ - push
5+ - pull_request
6+ - pull_request_target
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ jobs :
11+ lint :
12+ name : Lint
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ include :
17+ - drupal : " 10"
18+ php : " 8.2"
19+ steps :
20+ - uses : actions/checkout@v3
21+
22+ - name : Cache Composer dependencies
23+ uses : actions/cache@v3
24+ with :
25+ path : |
26+ /tmp/composer-cache
27+ ./web
28+ ./vendor
29+ ./composer.spoons.json
30+ ./composer.spoons.lock
31+ key : ${{ runner.os }}-${{ hashFiles('**/composer.json') }}-php${{ matrix.php }}-drupal${{ matrix.drupal }}
32+
33+ - name : Install drupal
34+ uses : wunderwerkio/github-action-composer@v1-beta
35+ with :
36+ php_version : ${{ matrix.php }}
37+ setup_drupal : yes
38+ drupal_core_constraint : ' ^${{ matrix.drupal }}'
39+
40+ - name : Lint
41+ uses : wunderwerkio/github-action-composer@v1-beta
42+ with :
43+ php_version : ${{ matrix.php }}
44+ command : phpcs
45+ test :
46+ name : Test
47+ runs-on : ubuntu-latest
48+ strategy :
49+ matrix :
50+ include :
51+ - drupal : " 9"
52+ php : " 8.1"
53+ - drupal : " 10"
54+ php : " 8.1"
55+ - drupal : " 10"
56+ php : " 8.2"
57+ steps :
58+ - uses : actions/checkout@v3
59+
60+ - name : Cache Composer dependencies
61+ uses : actions/cache@v3
62+ with :
63+ path : |
64+ /tmp/composer-cache
65+ ./web
66+ ./vendor
67+ ./composer.spoons.json
68+ ./composer.spoons.lock
69+ key : ${{ runner.os }}-${{ hashFiles('**/composer.json') }}-php${{ matrix.php }}-drupal${{ matrix.drupal }}
70+
71+ - name : Install drupal
72+ uses : wunderwerkio/github-action-composer@v1-beta
73+ with :
74+ php_version : ${{ matrix.php }}
75+ setup_drupal : yes
76+ drupal_core_constraint : ' ^${{ matrix.drupal }}'
77+
78+ - name : Test
79+ uses : wunderwerkio/github-action-composer@v1-beta
80+ with :
81+ php_version : ${{ matrix.php }}
82+ command : unit
You can’t perform that action at this time.
0 commit comments