-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix: reintroduce smoke tests across example projects #3669
Conversation
🦋 Changeset detectedLatest commit: 568aa72 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👍 |
Gotta call it for the day. Left some notes in Discord in the |
I merged #3674 which reverted the change that broke CI. Can continue fixing the smoke tests here. |
897df5f
to
a095e28
Compare
a095e28
to
340227a
Compare
@bholmesdev is picking this one up! We're hoping to build the |
9a988fe
to
fd2d14f
Compare
15deef3
to
44eb5c1
Compare
7d4d67a
to
e772a39
Compare
@@ -161,12 +161,16 @@ export default function markdown({ config }: AstroPluginOptions): Plugin { | |||
const { layout = '', components = '', setup = '', ...content } = frontmatter; | |||
content.astro = metadata; | |||
const prelude = `--- | |||
import { slug as $$slug } from '@astrojs/markdown-remark/ssr-utils'; |
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.
Remove direct import from @astrojs/markdown-remark
sub-dependency. Since this isn't explicitly installed, astro build
will fail from our monorepo
This reverts commit 9529b1a.
@@ -14,4 +14,4 @@ Written by: {new Intl.ListFormat('en').format(authors.map(d => d.name))}. | |||
|
|||
Published on: {new Intl.DateTimeFormat('en', {dateStyle: 'long'}).format(published)}. | |||
|
|||
<Counter client:idle>## This is a counter!</Counter> |
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.
Remove client:
directive. This is causing an infinite build loop that our smoke test (thankfully!) picked up
@@ -180,16 +180,21 @@ jobs: | |||
needs: build | |||
strategy: | |||
matrix: | |||
os: [ubuntu-latest, windows-latest] |
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.
Smoke tests are mysteriously failing on windows-latest
. We'll need to investigate separately
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.
As the docs team likes to say, NWTWWHB!
Can't approve my own PR but LGTM.
* chore: update smoke tests * chore: bump smoke tests to node@16 * chore: remove gitmodules * chore(ci): prefer node@14 * wip: remove path from smoke clone step * feat: run build:examples from test:smoke * fix: remove no-frozen-lockfile * fix: checkout monorepo last for pnpm setup * wip: replace @astrojs/markdown/remark import from md * fix: remove type defs from generated file * fix: function order * chore: remove ssr-utils export * wip: remove windows from smoke test * fix: instantiate slugger in snippet * fix: exclude with-mdx from smoke (for now) * fix: add quotes on filter flag for safety * chore: changeset * wip: try reintroducing windows smoke * sad chore: remove client: directive from with-mdx * Revert "wip: try reintroducing windows smoke" This reverts commit 9529b1a. Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: bholmesdev <hey@bholmes.dev>
Changes
no-frozen
requirement from lockfileastro.build
and Astro docs installation. Still checking out via CI, will revisit in a future PRclient:
directive fromwith-mdx
example. This is causing an infinite build loop to debug separately@astrojs/markdown-remark/ssr-utils
that our generated markdown files directly imported. This caused a missing dependency issue since@astrojs/markdown
isn't explicitly installed.Testing
Testing CI
Docs
N/A