-
Notifications
You must be signed in to change notification settings - Fork 2
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
php-token-bucket: replace Travis with GH Actions #3
Conversation
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' |
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.
We want to run this on all pushes?
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
push: | |
pull_request: |
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.
It's fast, so I don't see why not
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.
It was helpful when debugging which is why I did it. But if it makes more sense to make it PR only, that's fine
.github/workflows/psalm.yml
Outdated
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Run composer install | ||
run: composer install | ||
|
||
- name: Run psalm | ||
run: ./vendor/bin/psalm --output-format=github --update-baseline |
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.
Think all this could be replaced with https://github.com/psalm/psalm-github-actions
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' |
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.
Same here.
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: Run tests | ||
run: vendor/bin/phpunit tests |
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.
Could be replaced with https://github.com/php-actions/phpunit I think.
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.
CR 📱 with a few minor comments/questions.
Co-authored-by: Michael Lahargou <[email protected]>
CR 📱 |
Those are all good suggestions, but I'm just gonna merge this cause we're probably not going to change it again for a while |
qa_req 0