-
Notifications
You must be signed in to change notification settings - Fork 39
Add workflows and scripts, bump symfony/console, require nextcloud/co… #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
df28038
Add workflows and scripts, bump symfony/console, require nextcloud/co…
come-nc 5fc8e82
Remove PHP 7.3 from CI
come-nc 515841b
Scope nextcloud/coding-standard
kesselb 9b1d9d9
Use box compile instead of deprecated box build
come-nc 5bda9e4
composer run cs:fix
come-nc 8a873e6
Add github workflows for testing
come-nc a93852d
Testing all versions through github workflows
come-nc 587c330
Master version is now at 25
come-nc 9ee5aa0
Add summaries for test-stable and test-master workflows
come-nc 86df76f
Ignore vendor-bin folder in PHP code sniffer
come-nc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Next
Next commit
Add workflows and scripts, bump symfony/console, require nextcloud/co…
…ding-standard Signed-off-by: Côme Chilliet <[email protected]>
- Loading branch information
commit df280387ef3a1c4e91e2efebd70d2c555808edb9
There are no files selected for viewing
This file contains hidden or 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,51 @@ | ||
| # This workflow is provided via the organization template repository | ||
| # | ||
| # https://github.com/nextcloud/.github | ||
| # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
|
||
| name: Rebase command | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: created | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| rebase: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: none | ||
|
|
||
| # On pull requests and if the comment starts with `/rebase` | ||
| if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') | ||
|
|
||
| steps: | ||
| - name: Add reaction on start | ||
| uses: peter-evans/create-or-update-comment@v2 | ||
| with: | ||
| token: ${{ secrets.COMMAND_BOT_PAT }} | ||
| repository: ${{ github.event.repository.full_name }} | ||
| comment-id: ${{ github.event.comment.id }} | ||
| reaction-type: "+1" | ||
|
|
||
| - name: Checkout the latest code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.COMMAND_BOT_PAT }} | ||
|
|
||
| - name: Automatic Rebase | ||
| uses: cirrus-actions/[email protected] | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} | ||
|
|
||
| - name: Add reaction on failure | ||
| uses: peter-evans/create-or-update-comment@v2 | ||
| if: failure() | ||
| with: | ||
| token: ${{ secrets.COMMAND_BOT_PAT }} | ||
| repository: ${{ github.event.repository.full_name }} | ||
| comment-id: ${{ github.event.comment.id }} | ||
| reaction-type: "-1" |
This file contains hidden or 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,39 @@ | ||
| # This workflow is provided via the organization template repository | ||
| # | ||
| # https://github.com/nextcloud/.github | ||
| # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
|
||
| name: Lint | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - stable* | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| name: php-cs | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up php ${{ matrix.php-versions }} | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: "7.4" | ||
| coverage: none | ||
|
|
||
| - name: Install dependencies | ||
| run: composer i | ||
|
|
||
| - name: Lint | ||
| run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) |
This file contains hidden or 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,53 @@ | ||
| # This workflow is provided via the organization template repository | ||
| # | ||
| # https://github.com/nextcloud/.github | ||
| # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
|
||
| name: Lint | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - stable* | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| php-lint: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| php-versions: ["7.4", "8.0", "8.1"] | ||
|
|
||
| name: php-lint | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up php ${{ matrix.php-versions }} | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| coverage: none | ||
|
|
||
| - name: Lint | ||
| run: composer run lint | ||
|
|
||
| summary: | ||
| permissions: | ||
| contents: none | ||
| runs-on: ubuntu-latest | ||
| needs: php-lint | ||
|
|
||
| if: always() | ||
|
|
||
| name: php-lint-summary | ||
|
|
||
| steps: | ||
| - name: Summary status | ||
| run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi |
This file contains hidden or 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,18 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| require_once './vendor/autoload.php'; | ||
|
|
||
| use Nextcloud\CodingStandard\Config; | ||
|
|
||
| $config = new Config(); | ||
| $config | ||
| ->getFinder() | ||
| ->notPath('build') | ||
| ->notPath('l10n') | ||
| ->notPath('src') | ||
| ->notPath('vendor') | ||
| ->notPath('node_modules') | ||
| ->in(__DIR__); | ||
| return $config; | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.