-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(php idna translator): added new workflows for idna translator an…
…d fixed super-linter configuration for php-sdk
- Loading branch information
1 parent
24b32c3
commit 2acc343
Showing
5 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
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
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,46 @@ | ||
name: Release | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/php-idna-translator-test.yml | ||
secrets: inherit | ||
permissions: | ||
contents: read | ||
|
||
release: | ||
name: Release @ ${{ vars.RTLDEV_MW_CI_OS }} | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
needs: tests | ||
permissions: | ||
contents: write | ||
issues: write | ||
deployments: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Setup NodeJS ${{ vars.RTLDEV_MW_CI_NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ vars.RTLDEV_MW_CI_NODE_VERSION }} | ||
check-latest: true | ||
cache: "npm" | ||
- name: Install PHP ${{ vars.RTLDEV_MW_CI_PHP_VERSION }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ vars.RTLDEV_MW_CI_PHP_VERSION }} | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
echo "$HOME/.composer/vendor/bin" >> "$GITHUB_PATH" | ||
composer update --no-dev | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} | ||
TEAMS_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} | ||
COMMIT_SHA: ${{ github.sha }} | ||
run: npx semantic-release |
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,48 @@ | ||
name: Linting & Coverage | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
name: 🧪 Linting | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Super Linter Code Base | ||
uses: github/super-linter/slim@v5 | ||
env: | ||
FILTER_REGEX_INCLUDE: "/src/*|/tests/*" | ||
DEFAULT_BRANCH: main | ||
VALIDATE_PHP: true | ||
VALIDATE_PHP_PHPCS: true | ||
VALIDATE_PHP_PHPSTAN: true | ||
VALIDATE_ALL_CODEBASE: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test_matrix: | ||
name: 🧪 Testing | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
needs: lint | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
php-version: ${{ fromJson(vars.RTLDEV_MW_CI_PHP_MATRIX) }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Install Dependencies::PHP${{ matrix.php-version }} | ||
run: | | ||
echo "$HOME/.composer/vendor/bin" >> "$GITHUB_PATH" | ||
composer update | ||
- name: Code Validation | ||
run: composer run-script test |
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
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