Skip to content

Commit 78894f1

Browse files
committed
Add Workflow ci.
1 parent ff34671 commit 78894f1

8 files changed

Lines changed: 188 additions & 0 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
cooldown:
10+
default-days: 7
11+
groups:
12+
github-actions:
13+
patterns: ["*"]
14+
15+
# Maintain dependencies for Composer
16+
- package-ecosystem: "composer"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
cooldown:
21+
default-days: 7
22+
groups:
23+
composer:
24+
patterns: ["*"]
25+
versioning-strategy: increase-if-necessary
26+
27+
# Maintain dependencies for npm
28+
- package-ecosystem: "npm"
29+
directory: "/"
30+
schedule:
31+
interval: "daily"
32+
cooldown:
33+
default-days: 7
34+
groups:
35+
npm:
36+
patterns: ["*"]

‎.github/workflows/build.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: build
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
phpunit:
20+
uses: yii2-framework/actions/.github/workflows/phpunit.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1
21+
secrets:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23+
with:
24+
concurrency-group: phpunit-${{ github.workflow }}-${{ github.ref }}
25+
extensions: mbstring
26+
php-version: '["8.3","8.4","8.5"]'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: Composer require checker
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
composer-require-checker:
20+
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1

‎.github/workflows/ecs.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: ecs
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
easy-coding-standard:
20+
uses: yii2-framework/actions/.github/workflows/ecs.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1

‎.github/workflows/mutation.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: mutation test
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
mutation:
20+
uses: yii2-framework/actions/.github/workflows/infection.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1
21+
with:
22+
command-options: --threads=4 --ignore-msi-with-no-mutations
23+
phpstan: true
24+
secrets:
25+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

‎.github/workflows/quality.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
on:
3+
- pull_request
4+
- push
5+
6+
name: quality
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
quality:
13+
uses: yii2-framework/actions/.github/workflows/quality.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1
14+
permissions:
15+
contents: read
16+
with:
17+
codespell-config: .github/linters/.codespellrc
18+
editorconfig-checker-config: .github/linters/.editorconfig-checker.json
19+
markdownlint-config: .github/linters/.markdown-lint.yml
20+
prettier-config: .prettierrc.json
21+
prettier-ignore-path: .prettierignore
22+
yamllint-targets: .github

‎.github/workflows/security.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
on:
3+
- pull_request
4+
- push
5+
6+
name: security
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
security:
13+
uses: yii2-framework/actions/.github/workflows/security.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1
14+
permissions:
15+
contents: read
16+
with:
17+
gitleaks-config: .github/linters/.gitleaks.toml
18+
secrets:
19+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

‎.github/workflows/static.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: static analysis
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
phpstan:
20+
uses: yii2-framework/actions/.github/workflows/phpstan.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1

0 commit comments

Comments
 (0)