Skip to content

Replace Travis and Appveyor by GitHub Actions #1171

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 1 commit into from
Nov 5, 2020

Conversation

javiereguiluz
Copy link
Member

No description provided.

./bin/console lint:yaml config --parse-tags

- name: Lint Twig templates
run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to execute all linters steps, no matter there was an error in a previous linter step, you can declare an id deps on the composer update step and use:

Suggested change
run: |
if: always() && steps.deps.outcome == 'success'
run: |

on each steps.
So even if the previous step is failing, the next ones are executed and we get all the infos about what is wrong in the PR.

(https://github.com/ogizanagi/symfony-lint-gha-demo/blob/000fcd5b832d6b35a3359d6b07a279445d9d8091/.github/workflows/lint.yaml#L40-L45)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Let's do that. Thanks!

run: composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-main

- if: matrix.php-version != '8.0'
run: composer update
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the CI run with the locked dependencies instead ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javiereguiluz maybe composer install ?

@javiereguiluz
Copy link
Member Author

Here's a question about GitHub Actions: I guess we don't see the checks added to this PR because it's the PR where we adding them, so I only see the checks in my personal fork: https://github.com/javiereguiluz/demo/actions

That's OK ... but why GitHub only runs the lint.yaml workflow and ignores the ci.yaml workflow? Thanks!

@ogizanagi
Copy link
Contributor

That's OK ... but why GitHub only runs the lint.yaml workflow and ignores the ci.yaml workflow? Thanks!

Because the ci workflow does only run on pushing new commits to master:

https://github.com/javiereguiluz/demo/blob/58bd1eb7456e12ee2a5fe8e915c80b0ba0f1ecee/.github/workflows/ci.yaml#L5-L7

while the lint one allows to run on any branch

@javiereguiluz
Copy link
Member Author

@ogizanagi Sorry I missed that! Thanks!

@stof
Copy link
Member

stof commented Nov 5, 2020

And for a workflow to run on a PR, the workflow file must exist in the repository. new workflows are not running for PRs sent from a fork.

@javiereguiluz javiereguiluz merged commit bb3b183 into symfony:master Nov 5, 2020
@javiereguiluz
Copy link
Member Author

This is now merged ... so the switch is complete 🎉

Maxime, Christophe and Oskar ... THANKS for your great help (and patience) here. I couldn't make this without your help. Thanks! 🙇

@javiereguiluz javiereguiluz deleted the github_actions branch November 5, 2020 14:33
javiereguiluz added a commit that referenced this pull request Jan 7, 2021
…javiereguiluz)

This PR was squashed before being merged into the main branch.

Discussion
----------

Removed friendsofphp/php-cs-fixer from dev dependencies

We can remove this because we're now using PHP-CS-Fixer via a Docker image created by @OskarStark and run via GitHub Actions (see #1171)

Commits
-------

d36d83b Removed friendsofphp/php-cs-fixer from dev dependencies
sayjun0505 added a commit to sayjun0505/sym_proj that referenced this pull request Apr 16, 2023
…javiereguiluz)

This PR was squashed before being merged into the main branch.

Discussion
----------

Removed friendsofphp/php-cs-fixer from dev dependencies

We can remove this because we're now using PHP-CS-Fixer via a Docker image created by @OskarStark and run via GitHub Actions (see symfony/demo#1171)

Commits
-------

d36d83b Removed friendsofphp/php-cs-fixer from dev dependencies
spider-yamet added a commit to spider-yamet/sym_proj that referenced this pull request Apr 16, 2023
…javiereguiluz)

This PR was squashed before being merged into the main branch.

Discussion
----------

Removed friendsofphp/php-cs-fixer from dev dependencies

We can remove this because we're now using PHP-CS-Fixer via a Docker image created by @OskarStark and run via GitHub Actions (see symfony/demo#1171)

Commits
-------

d36d83b Removed friendsofphp/php-cs-fixer from dev dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants