Commit graph

91 commits

Author SHA1 Message Date
Emanuele Stoppa
9ad0d326f9
ci: enable codegen errors job (#7961) 2023-08-04 16:54:11 +01:00
Emanuele Stoppa
f844238c9b
feat: break down AstroErrorData in multiple objects (#7949) 2023-08-04 14:57:19 +01:00
Emanuele Stoppa
4c93bd8154
feat(@astrojs/netlify): edge middleware support (#7632)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-17 15:53:10 +01:00
Bjorn Lu
b30a1bc2b8
Update turbo cache flow (#7631) 2023-07-13 12:51:01 +08:00
Bjorn Lu
7419bb6cf2
Fix CI lint command (#7554) 2023-07-03 14:55:02 +01:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
Chris Swithinbank
e9a0fb502a
Use head repository name for docgen in smoke test (#7512) 2023-06-28 18:13:51 +02:00
Chris Swithinbank
2df9002a56
Run documentation generation as part of docs smoke test (#7495) 2023-06-28 14:20:32 +02:00
Emanuele Stoppa
b9b57d901d
ci: don't run workflow for ISSUE_TEMPLATE (#7433) 2023-06-20 20:37:04 +01:00
Arsh
d67ae84610
Node built-in modules support for Deno adapter (#7288)
* feature(deno adapter): allow built-in node modules

* Add changeset

* format
2023-06-15 10:20:35 -04:00
Bjorn Lu
383ad80768
Speed up docs smoke tests (#6921) 2023-04-27 21:23:29 +08:00
Bjorn Lu
ec5f6a07ae
Upgrade turbo (#6911) 2023-04-27 11:39:15 +08:00
Bjorn Lu
7544d9bd41
Cleanup CI logs and run windows on node16 only (#6838) 2023-04-19 10:59:09 +02:00
Emanuele Stoppa
c1ca84a8c1
ci: add workflow dispatch (#6386) 2023-03-01 14:02:35 +00:00
Nate Moore
4d75396362
enable ci for merge_group (#6361) 2023-02-24 13:57:02 -06:00
Nate Moore
098341f17a
ci: don't pin pnpm/action-setup exactly (#6348) 2023-02-24 09:52:43 -06:00
Erika
2f6745019a
Drop Node 14 in CI for Node 16 and add Node 18 to the matrix (#5768)
* ci(node): Move CI to Node 16 and add Node 18 to the matrix

* fix(netlify): Fix set-cookie not working on Node 18

* fix(netlify): Handle if `set-cookie` is already somehow an array (apparently it can?)

* test(node): Fix `toPromise` to match Astro's

* fix(tests): Use the actual underlying ArrayBuffer instance to create the buffer in toPromise

* chore: changeset
2023-01-06 12:01:54 -05:00
Nate Moore
2a90217490
chore(ci): skip OG images in smoke test (#5757)
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-04 15:17:18 -06:00
Bjorn Lu
c2844a79c8
Fix docs smoke error (#5706)
Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-01-02 21:31:51 +08:00
Nate Moore
f47fb995c0
chore(ci): add timeout to all ci jobs (#5374)
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-11 13:09:01 -06:00
Michael Rienstra
2f8c9a98cc
ci: fix prettier arg (#5263) 2022-11-01 14:29:31 +08:00
Michael Rienstra
0e043bb287
Remove shamefully-hoist from docs smoke test (#5193) 2022-10-31 14:43:04 +08:00
Matthew Phillips
83fd265950
Revert "GitHub Actions: add install action (#5196)" (#5242)
This reverts commit d7b27a17e3.
2022-10-28 14:36:50 -04:00
Michael Rienstra
d7b27a17e3
GitHub Actions: add install action (#5196)
* GitHub Actions: add install action
to reduce duplication

* debug, temp

* expect strings
add warnings

* minor, consistency

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-28 12:40:03 -04:00
Robin Lindner
5bbe385b21
Improve test infrastructure for integrations/deno (#5005)
* Improve test infrastructure for integrations/deno

* Add changeset

* Use declared type

* Remove changeset

* Upgrade deno version in -workflow
2022-10-07 09:36:24 -04:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist (#4842) 2022-09-28 23:13:33 +08:00
Erika
e9eb4d1f3d
Fix ESLint not working in CI (#4837)
* Update ESLint extensions

* Use fredkbot

* Only use fredkbot for the commit

* Disable autofix

* Fix lint error
2022-09-22 11:37:41 -04:00
Fred K. Schott
b1cad77fa1
ci-fix (#4280) 2022-08-11 23:00:38 -07:00
Nate Moore
e65c772678
Update ci.yml (#4271) 2022-08-11 13:44:07 -05:00
Nate Moore
51847a276f
Do not cancel-in-progress on main (#4253)
* chore(ci): do not cancel-in-progress on main

* still cancels?

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-10 17:25:22 -05:00
Nate Moore
20fd767234 Revert "debug ci"
This reverts commit c0caf7e353.
2022-08-10 16:34:01 -05:00
Nate Moore
c0caf7e353 debug ci 2022-08-10 16:33:35 -05:00
Matthew Phillips
6bc2cbe5e9
Add Windows back to smoke tests (#4202) 2022-08-08 15:35:58 -04:00
Fred K. Schott
778a4d2af1
update test coverage to include more Node and Windows tests (#4144)
* update node test coverage to include v18, more windows tests

* chore(ci): update turbo to account for OS and NODE_VERSION

* chore: disable node@18, add TODO

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 15:14:19 -05:00
Ben Holmes
91e051dc62
temp: pull astro.build from smoke (#3975) 2022-07-19 13:11:40 -04:00
Ben Holmes
aa06fd9f9a
[Smoke] Add docs and astro.build to smoke test (#3941)
* feat: add docs and astrobuild to checkout

* fix: checkout external repos after main

* wip: build each external repo separately?

* Revert "wip: build each external repo separately?"

This reverts commit 042a3b2a8b33cfcff1622c2002bdfa43a5532ea8.

* fix: move checkout to smoke/

* chore: add react to peer dep ignores for CI
2022-07-18 16:00:00 -04:00
Nate Moore
93e1020b1e
Fix: reintroduce smoke tests across example projects (#3669)
* 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 9529b1a45c.

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11 22:51:17 -04:00
Joaquín Sánchez
c6ba6ec4d9
fix: lint failing on astro and some integrations (#3794)
* fix: lint failing on astro and some integrations

* chore: fix telemetry lint

* chore: fix turbo cache (thx nate)

* chore: fix runtime server
2022-07-07 16:06:44 -05:00
Nate Moore
f9290b328a
CI: Prefer per-job cache rather than artifact I/O (#3781)
* chore(ci): prefer per-job cache rather than artifact io

* chore: update cache step

* chore: fix cache key

* chore(ci): build on windows as well

* chore(ci): enable remote cache

* chore: run build on all three platforms

* chore: prefer turbo to custom caching logic

* chore: build AFTER install

* chore: build on node 14

* chore: remove build, parallelize tasks

* chore: update cache

* chore: prime build caches

* chore: fix indentation

* chore(ci): only build on ubuntu

* chore(ci): changelog needs build

* chore(ci): ignore updates to md files

* chore(ci): add 20 min timeout for e2e tests

* chore(ci): enable FORCE_COLOR

* chore: run turbo with `--output-logs=new-only`

Co-authored-by: Nate Moore <nate@astro.build>
2022-06-30 16:26:37 -05:00
Fred K. Schott
bf44b2ab88
Ci: improve times, reduce delay (#3780)
* improve CI times

* improve CI times
2022-06-30 11:21:41 -07:00
Ben Holmes
660abd3dee
Chore: remove memory test from CI (#3758)
* chore: remove memory test

* chore: remove memory test from ci

* chore: changeset

* Revert "chore: remove memory test"

This reverts commit 31b97c9df9.

* chore: update changeset to say "CI only"

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-06-28 15:47:21 -04:00
bholmesdev
855b1daba9 Revert "chore: remove memory test from ci"
This reverts commit 3f79a6e73f.
2022-06-28 10:06:02 -04:00
bholmesdev
3f79a6e73f chore: remove memory test from ci 2022-06-28 10:00:33 -04:00
Fred K. Schott
35da5bd93e
add fredkbot for push access (#3730) 2022-06-27 11:02:44 -07:00
Tony Sullivan
b8c6dabfb7
Enables eslint on the full repo and adds a rule for no only() tests (#3659)
* enabling eslint on the all packages and tests

* enabling for all packages

* TEMP: adding an only() test to verify it fails CI

* using our eslint config and ignore in CI

* removing the temporary .only() test

* update lock file

* lint: fixing new test with a no-shadow warning

* chore: update lock file
2022-06-22 15:59:49 +00:00
Tony Sullivan
2b622b5e0f
Adding E2E testing with Playwright (#3349)
* adding Tailwind E2E tests with Playwright

* package.json updates

* adding e2e tests to CI workflow

* using e2e for dev tests, mocha for build tests

* refactor: sharing test-utils helpers

* chore: update lockfile

* Adding contributing docs

* Revert "refactor: sharing test-utils helpers"

This reverts commit 48496f43bc99eab30747baf6e83041ba4932e786.

* refactor: simpler solution to resolving e2e test fixtures

* chore: updating lockfile

* refactor: cleaning up how URLs are resolved in e2e tests

* install playwright deps in CI

* trying pnpm playwright install to fix version mismatch
2022-05-15 21:47:28 +00:00
Matthew Phillips
f76038ac7d
Telemetry (#3256)
* feat: add @astrojs/telemetry

* feat: add telemetry events, add queueing system

* feat(telemetry): record CLI events

* chore: add note

* feat: support generic TELEMETRY_DISABLED env var

* Fix test script

* shim telemetry in tests

* Shim telemetry in other commands

* Stub telemetry in the memory leak test

* Disable telemetry in smoke tests

* Adds a changeset

* Run the formatter

* few updates

* Include config keys

* Add shallow viteKeys array:
:

* Add vite keys and tests

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
Matthew Phillips
13b271bc7d
Deno adapter (#2934)
* Bundle everything, commit 1

* Get everything working

* Remove dependency on readable-stream

* Adds a changeset

* Fix ts errors

* Use the node logger in tests

* Callback the logger when done writing

* Fix test helper to await the callback

* Use serialize-javascript again

* Remove dead code

* Rename hook

* Oops
2022-03-30 08:42:19 -04:00
Fred K. Schott
7943334e01 update ci to fix congratsbot 2022-03-21 15:55:31 -07:00
Nate Moore
9219d5e1c0
Release bot (#2836)
* fix(ci): improve release-bot message by dynamically generating packageMap

* fix(ci): update changeset to refresh lockfile after version
2022-03-19 10:33:24 -07:00