-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[general] Use reusable workflows (#247)
* Use reusable workflows * Updating config * CI config
- Loading branch information
Showing
151 changed files
with
4,983 additions
and
11,662 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Code Linting" | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- v* | ||
schedule: | ||
- cron: "0 8 * * 1" # At 08:00 on Monday | ||
|
||
env: | ||
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}' | ||
|
||
jobs: | ||
php: | ||
name: "PHP Lint" | ||
|
||
uses: "fastybird/.github/.github/workflows/php-lint.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] | ||
|
||
js: | ||
name: "JS Lint" | ||
|
||
uses: "fastybird/.github/.github/workflows/lerna-js-lint.yaml@main" | ||
secrets: inherit | ||
with: | ||
node: "${{ matrix.node-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ "20" ] | ||
operating-system: [ "ubuntu-latest" ] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Code quality assurance" | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- v* | ||
schedule: | ||
- cron: "0 8 * * 1" # At 08:00 on Monday | ||
|
||
env: | ||
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}' | ||
|
||
jobs: | ||
php: | ||
name: "PHP Code quality assurance" | ||
|
||
uses: "fastybird/.github/.github/workflows/php-cs.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] | ||
|
||
js: | ||
name: "JS Code quality assurance" | ||
|
||
uses: "fastybird/.github/.github/workflows/prettier.yaml@main" | ||
secrets: inherit | ||
with: | ||
node: "${{ matrix.node-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ "20" ] | ||
operating-system: [ "ubuntu-latest" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Code Static Analysis" | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- v* | ||
schedule: | ||
- cron: "0 8 * * 1" # At 08:00 on Monday | ||
|
||
env: | ||
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}' | ||
|
||
jobs: | ||
phpstan: | ||
name: "PHP Lint" | ||
|
||
uses: "fastybird/.github/.github/workflows/phpstan.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] | ||
|
||
js: | ||
name: "JS Lint" | ||
|
||
uses: "fastybird/.github/.github/workflows/lerna-js-types.yaml@main" | ||
secrets: inherit | ||
with: | ||
node: "${{ matrix.node-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ "20" ] | ||
operating-system: [ "ubuntu-latest" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: "PHP Tester" | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- v* | ||
schedule: | ||
- cron: "0 8 * * 1" # At 08:00 on Monday | ||
|
||
env: | ||
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}' | ||
|
||
jobs: | ||
tests: | ||
name: "PHP Tests" | ||
|
||
uses: "fastybird/.github/.github/workflows/phpunit.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] | ||
|
||
code-coverage: | ||
name: "PHP Tests With Code Coverage" | ||
needs: [ "tests" ] | ||
|
||
if: "github.event_name == 'push'" | ||
|
||
uses: "fastybird/.github/.github/workflows/phpunit.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
coverage: true | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] | ||
|
||
mutations: | ||
name: "PHP Tests For Mutants" | ||
needs: [ "tests" ] | ||
|
||
if: "github.event_name == 'push'" | ||
|
||
uses: "fastybird/.github/.github/workflows/mutations.yaml@main" | ||
secrets: inherit | ||
with: | ||
php: "${{ matrix.php-version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.2" ] | ||
operating-system: [ "ubuntu-latest" ] |
Oops, something went wrong.