File tree Expand file tree Collapse file tree 3 files changed +79
-3
lines changed Expand file tree Collapse file tree 3 files changed +79
-3
lines changed Original file line number Diff line number Diff line change 22
33on :
44 pull_request :
5- push :
6- branches :
7- - master
85jobs :
96 tests :
107 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : Automated release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ jobs :
7+ tests :
8+ runs-on : ubuntu-latest
9+
10+ strategy :
11+ matrix :
12+ php : [ 8.1, 8.2, 8.3, 8.4 ]
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ${{ matrix.php }}
22+ coverage : none
23+
24+ - name : Validate composer.json and composer.lock
25+ run : composer validate
26+
27+ - name : Install dependencies
28+ run : composer install --prefer-dist --no-progress --no-interaction --no-suggest
29+
30+ - name : Execute Code Sniffer
31+ run : vendor/bin/phpcs
32+
33+ - name : Execute PHP Stan
34+ run : vendor/bin/phpstan
35+
36+ - name : Run test suite
37+ run : |
38+ php -S 127.0.0.1:8000 -t tests/data/app >/dev/null 2>&1 &
39+ php -S 127.0.0.1:8010 -t tests/data/rest >/dev/null 2>&1 &
40+ php vendor/bin/codecept run
41+
42+
43+ release :
44+ name : Automated release
45+ needs :
46+ - tests
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/checkout@v4
50+ with :
51+ fetch-depth : 0
52+ persist-credentials : false
53+ - uses : actions/setup-node@v4
54+ with :
55+ node-version : 22
56+ - run : >
57+ npx
58+ -p "@semantic-release/commit-analyzer"
59+ -p "@semantic-release/release-notes-generator"
60+ -p conventional-changelog-conventionalcommits
61+ -p semantic-release
62+ -- semantic-release
63+ env:
64+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+ permissions :
66+ packages : write
67+ contents : write
68+ pull-requests : write
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [" master" ],
3+ "tagFormat" : " ${version}" ,
4+ "plugins" : [
5+ [" @semantic-release/commit-analyzer" , {
6+ "preset" : " conventionalcommits" ,
7+ "presetConfig" : {}
8+ }],
9+ " @semantic-release/github" ,
10+ " @semantic-release/release-notes-generator" ]
11+ }
You can’t perform that action at this time.
0 commit comments