File tree Expand file tree Collapse file tree 24 files changed +5194
-0
lines changed Expand file tree Collapse file tree 24 files changed +5194
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [* ]
6
+ charset = utf-8
7
+ end_of_line = lf
8
+ indent_size = 4
9
+ indent_style = space
10
+ insert_final_newline = true
11
+ trim_trailing_whitespace = true
12
+
13
+ [* .yml ]
14
+ indent_size = 2
15
+ indent_style = space
16
+
17
+ [* .md ]
18
+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+
4
+ github : libresign
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+
4
+ # Comment to be posted to on PRs from first time contributors in your repository
5
+ newPRWelcomeComment : " Thanks for opening your first pull request in this repository! :v:"
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+
4
+ version : 2
5
+ updates :
6
+ # Maintain dependencies for Composer
7
+ - package-ecosystem : " composer" # See documentation for possible values
8
+ directory : " /" # Location of package manifests
9
+ schedule :
10
+ interval : " daily"
Original file line number Diff line number Diff line change
1
+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
2
+ #
3
+ # SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
4
+ # SPDX-License-Identifier: AGPL-3.0-or-later
5
+
6
+ name : Lint php-cs
7
+
8
+ on : pull_request
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ concurrency :
14
+ group : lint-php-cs-${{ github.head_ref || github.run_id }}
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ lint :
19
+ runs-on : ubuntu-latest
20
+
21
+ name : php-cs
22
+
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26
+
27
+ - name : Set up php
28
+ uses : shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
29
+ with :
30
+ php-version : 8.3
31
+ coverage : none
32
+ ini-file : development
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - name : Install dependencies
37
+ run : composer i
38
+
39
+ - name : Lint
40
+ run : composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
Original file line number Diff line number Diff line change
1
+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
2
+ #
3
+ # SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
4
+ # SPDX-License-Identifier: AGPL-3.0-or-later
5
+
6
+ name : Lint php
7
+
8
+ on : pull_request
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ concurrency :
14
+ group : lint-php-${{ github.head_ref || github.run_id }}
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ matrix :
19
+ runs-on : ubuntu-latest
20
+ outputs :
21
+ php-versions : ${{ steps.versions.outputs.php-versions }}
22
+ steps :
23
+ - name : Checkout app
24
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25
+
26
+ php-lint :
27
+ runs-on : ubuntu-latest
28
+ needs : matrix
29
+
30
+ name : php-lint
31
+
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
35
+
36
+ - name : Set up php
37
+ uses : shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
38
+ with :
39
+ php-version : 8.3
40
+ coverage : none
41
+ ini-file : development
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name : Lint
46
+ run : composer run lint
47
+
48
+ summary :
49
+ permissions :
50
+ contents : none
51
+ runs-on : ubuntu-latest
52
+ needs : php-lint
53
+
54
+ if : always()
55
+
56
+ name : php-lint-summary
57
+
58
+ steps :
59
+ - name : Summary status
60
+ run : if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi
Original file line number Diff line number Diff line change
1
+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
2
+ #
3
+ # SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
4
+ # SPDX-License-Identifier: AGPL-3.0-or-later
5
+
6
+ name : Static analysis
7
+
8
+ on : pull_request
9
+
10
+ concurrency :
11
+ group : psalm-${{ github.head_ref || github.run_id }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ static-analysis :
16
+ runs-on : ubuntu-latest
17
+
18
+ name : static-psalm-analysis
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22
+
23
+ - name : Set up php
24
+ uses : shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
25
+ with :
26
+ php-version : 8.3
27
+ coverage : none
28
+ ini-file : development
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+
32
+ - name : Install dependencies
33
+ run : composer i
34
+
35
+ - name : Run coding standards check
36
+ run : composer run psalm
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+
4
+ name : Build and publish phar
5
+
6
+ on :
7
+ release :
8
+ types : [published]
9
+
10
+ jobs :
11
+ build_and_publish :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Check actor permission
16
+ uses : skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
17
+ with :
18
+ require : write
19
+
20
+ - name : Checkout
21
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22
+
23
+ - name : Setup PHP with tools
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ' 8.3'
27
+ tools : box
28
+
29
+ - name : Box
30
+ run : box compile
31
+
32
+ - name : Attach tarball to github release
33
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
34
+ id : attach_to_release
35
+ with :
36
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
37
+ file : spdx.phar
38
+ asset_name : spdx.phar
39
+ tag : ${{ github.ref }}
40
+ overwrite : true
Original file line number Diff line number Diff line change
1
+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
2
+
3
+ # SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
4
+ #
5
+ # SPDX-License-Identifier: CC0-1.0
6
+
7
+ name : REUSE Compliance Check
8
+
9
+ on : [pull_request]
10
+
11
+ jobs :
12
+ reuse-compliance-check :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
17
+
18
+ - name : REUSE Compliance Check
19
+ uses : fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
Original file line number Diff line number Diff line change
1
+ vendor
2
+ .php-cs-fixer.cache
You can’t perform that action at this time.
0 commit comments