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

MNT Resolve CI problems #3

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Nov 13, 2023

Linting and unit tests are failing - see https://github.com/silverstripe/markdown-php-codesniffer/actions/runs/6844025973

  • Tell phpcs what to sniff
  • Throw a hard error if we can't bootstrap tests correctly (I had intended to do that in NEW Add sniffer code #1 but it got missed out)
  • Force Tokens.php to be run for constant declarations (needed in CI for some reason, but not needed locally)

Issue

@GuySartorelli GuySartorelli marked this pull request as draft November 13, 2023 00:45
@GuySartorelli GuySartorelli force-pushed the pulls/1.0/fix-ci branch 2 times, most recently from 7a32797 to a125d4d Compare November 13, 2023 01:27
@GuySartorelli GuySartorelli marked this pull request as ready for review November 13, 2023 01:27
tests/bootstrap.php Show resolved Hide resolved
.env Outdated
@@ -0,0 +1,12 @@
SS_DATABASE_CLASS="MySQLDatabase"
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 be adding a .env file directly in root of a module

We dynamically create .env file in ci - https://github.com/silverstripe/gha-ci/blob/1/.github/workflows/ci.yml#L657 - may need to make an update in gha-ci to get this to work the way you want things to?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, that was just a git add . and not double checking if I was adding extra gunk. It's a directly copy of what CI adds already from when I was trying to figure out what was going wrong in CI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

tests/bootstrap.php Show resolved Hide resolved
- Tell phpcs what to sniff
- Throw a hard error if we can't bootstrap tests correctly
- Force Tokens.php to be run for constant declarations
@GuySartorelli
Copy link
Member Author

@emteknetnz Are there any more changes needed for this PR?

@emteknetnz emteknetnz merged commit 8bd191f into silverstripe:1.0 Nov 14, 2023
12 checks passed
@emteknetnz emteknetnz deleted the pulls/1.0/fix-ci branch November 14, 2023 00:28
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