Skip to content
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

Run CI & security check using GitHub actions #666

Merged
merged 6 commits into from
Dec 17, 2023
Merged

Conversation

marmichalski
Copy link
Contributor

No description provided.

@marmichalski marmichalski force-pushed the github-ci branch 30 times, most recently from 20f81d5 to 12811f1 Compare December 15, 2023 00:51
@marmichalski marmichalski force-pushed the github-ci branch 7 times, most recently from 6232e85 to 12b1445 Compare December 15, 2023 01:38
- name: "Validate database schema"
run: "bin/console doctrine:schema:validate"

- name: "Set git committer info"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stolen from #580

@@ -141,20 +141,32 @@ public function testUpdateWhenRepoExist(): void
private function updateAdvisoriesDatabaseRepo(): void
{
$this->filesystem->copy($this->repoDir.'/aws/aws-sdk-php/CVE-2015-5723.yaml', $this->repoDir.'/google/google-sdk-php/CVE-2015-5723.yaml');
(new Process(['git', 'add', '.'], $this->repoDir))->run();
(new Process(['git', '-c', 'commit.gpgsign=false', 'commit', '-a', '-m', 'New CVE discovered'], $this->repoDir))->run();
$this->executeCommandInRepoDir(['git', 'add', '.']);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stolen from #580


strategy:
fail-fast: false
matrix:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is ready for being expanded

- name: "Checkout"
uses: "actions/checkout@v4"
with:
ref: ${{ github.event.pull_request.head.ref || '' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are in a detached HEAD mode in pull request, so we want to move back to the actual PR branch - without this package synchronization tests are failing 😠

@marmichalski marmichalski marked this pull request as ready for review December 15, 2023 01:44
@marmichalski marmichalski requested a review from akondas December 15, 2023 01:44
@marmichalski marmichalski merged commit a004f68 into master Dec 17, 2023
1 check passed
@marmichalski marmichalski deleted the github-ci branch December 17, 2023 19:30
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.

2 participants