-
Notifications
You must be signed in to change notification settings - Fork 9
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
IBX-829 [CI] Moved CS and PHPUnit jobs to Github Actions #60
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,50 @@ | ||||
name: CI | ||||
|
||||
on: | ||||
push: | ||||
branches: | ||||
- master | ||||
- '[0-9]+.[0-9]+' | ||||
pull_request: ~ | ||||
|
||||
jobs: | ||||
tests: | ||||
name: Tests | ||||
runs-on: "ubuntu-20.04" | ||||
timeout-minutes: 10 | ||||
|
||||
strategy: | ||||
fail-fast: false | ||||
matrix: | ||||
php: | ||||
- '7.1' | ||||
- '7.3' | ||||
- '7.4' | ||||
composer_options: [ "" ] | ||||
experimental: [false] | ||||
|
||||
steps: | ||||
- uses: actions/checkout@v2 | ||||
|
||||
- name: Setup PHP Action | ||||
uses: shivammathur/setup-php@v2 | ||||
with: | ||||
php-version: ${{ matrix.php }} | ||||
coverage: none | ||||
extensions: pdo_sqlite, gd | ||||
tools: cs2pr | ||||
|
||||
- uses: "ramsey/composer-install@v1" | ||||
with: | ||||
dependency-versions: "highest" | ||||
composer-options: "${{ matrix.composer_options }}" | ||||
|
||||
- name: Setup problem matchers for PHPUnit | ||||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||||
|
||||
- name: Run code style check | ||||
run: composer run-script check-cs -- --format=checkstyle | cs2pr | ||||
|
||||
- name: Run test suite | ||||
run: composer run-script --timeout=600 test | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (whitespace leftover, which makes git complain about missing newline)
Suggested change
What editor are you using? VSCode? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. Yes, VSCode There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused, could be removed?