-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (54 loc) · 1.45 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Automated Release
on:
push:
branches:
- master
jobs:
code_checks:
name: Check code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Install dependencies
run: composer install
- name: Prepare tests
run: vendor/bin/codecept build
- name: Regenerate autoloader
run: composer dumpautoload
- name: Run tests
run: vendor/bin/codecept run --coverage-xml
- name: Test code style
run: vendor/bin/ecs
- name: Static analysis (Psalm)
run: vendor/bin/psalm
- name: Static analysis (PHPStan)
run: vendor/bin/phpstan
release:
name: Automated release
needs: [ code_checks ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- run: >
npx
-p "@semantic-release/commit-analyzer"
-p "@semantic-release/release-notes-generator"
-p conventional-changelog-conventionalcommits
-p semantic-release
-- semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: phpDocumentor