Commit Graph

663 Commits

Author SHA1 Message Date
Peter Stöckli 9c2ac5f756
Fix typo in container registry domain (#389) 2023-02-09 22:59:51 +09:00
Yuta Saito 254a0e03d6
Add note for branch rename for tap repository 2023-01-10 19:22:07 +09:00
Tatsuyuki Kobayashi 74b8ca6e1d
Fix carton sdk install on linux(aarch64) (#386)
Fix linux aarch64 install path
2022-10-16 13:46:21 +00:00
Tatsuyuki Kobayashi db91a617e9
Allow to save .swift-version even .swift-version is missing (#385)
Allow to save .swift-version even for the first time
2022-10-08 19:38:17 +09:00
Tatsuyuki Kobayashi 94691a349b
Fix SwiftPM dependency warning for template project (#384)
Fix not to use deprecated method
2022-10-03 15:23:26 +09:00
Yuta Saito 8227edf5aa Remove outdated GitHub Actions job 2022-09-30 14:30:18 +00:00
Yuta Saito 3a00a0d79b Bump version to 0.17.0, update `CHANGELOG.md` 2022-09-30 14:17:39 +00:00
Yuta Saito 2fe7118e51
Update default toolchain version to 5.7.1 (#383) 2022-09-29 23:31:48 +08:00
Yuta Saito daf152d93d
Update SwiftPM library version to 5.7 (#381) 2022-09-25 20:52:39 +09:00
Yuta Saito 734e333a43
Add 5.7 host toolchain matrix (#380) 2022-09-21 13:06:11 +09:00
noppefoxwolf bdb5d5944a
Use @main attributes (#378) 2022-09-14 19:38:59 +09:00
noppefoxwolf 2f462a4693
Ignore force_try swift-lint rule where in defer. (#379)
Update BrowserTestRunner.swift
2022-09-14 04:01:19 +00:00
Max Desiatov 04d757bfba
Remove `swiftlint` from `Brewfile`
`swiftlint` from Homebrew now requires macOS 12, but I'd prefer our CI to still support macOS 11 for as long as possible.
2022-09-04 13:15:17 +01:00
Max Desiatov c55e56c18f
Delete update-deps.yml 2022-09-04 12:59:19 +01:00
Yuta Saito c7d6586ccd
Update SwiftPM dependencies (#374) 2022-08-28 09:37:53 +01:00
Yuta Saito f3bb6ecab7
Update SwiftPM dependencies (#373)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-21 12:30:26 +08:00
Yuta Saito 3eb847b6a0
Update SwiftPM dependencies (#372)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-18 20:03:00 +09:00
Yuta Saito 1d48528554
Update SwiftPM dependencies (#371)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2022-08-07 10:49:46 +09:00
Yuta Saito b8cac7dc8e Revert "Use GITHUB_TOKEN instead of PAT to upload image to ghcr"
This reverts commit ddefd139a0.
2022-07-22 14:33:23 +00:00
Yuta Saito ddefd139a0 Use GITHUB_TOKEN instead of PAT to upload image to ghcr 2022-07-22 14:24:08 +00:00
Yuta Saito 9c0abbf013 Bump version to 0.16.1, update `CHANGELOG.md` 2022-07-22 14:21:51 +00:00
Yuta Saito 2fa2568a16
Exit non-zero status when test fail on browser (#370)
* Add crash test case

* Exit non-zero status when test fail

also handle JS exception
2022-07-19 01:28:40 +09:00
Max Desiatov 2c5cf34e0c
Update SwiftPM dependencies (#368) 2022-06-26 13:45:03 +02:00
Max Desiatov 097b99290a
Update SwiftPM dependencies (#366) 2022-06-19 12:30:37 +02:00
Yuta Saito 1de809e223 Update carton compatibility matrix 2022-06-15 23:08:43 +09:00
Yuta Saito 29a9b587b2 Bump version to 0.16.0, update `CHANGELOG.md` 2022-06-15 23:03:41 +09:00
Max Desiatov c92f85c543
Revert "Use `--static-swift-stdlib` for easier distribution on Linux" (#365)
Revert "Use `--static-swift-stdlib` for easier distribution on Linux (#343)"

This reverts commit 78d023587c.

As reported previously:

> after adding --static-swift-stdlib, carton init and other commands started hanging.
> It seems something wrong in Foundation or global executor. The min repro for the hang is here
> https://gist.github.com/kateinoigakukun/a3ee55fa2480a46959211c53de862131
2022-06-15 10:02:07 +02:00
Max Desiatov 0db2416c1b
Update SwiftPM dependencies (#363) 2022-06-12 14:41:34 +01:00
Yuta Saito 646f1aef85
Headless test runner (#362)
* Add WebDriverClient for headless testing

* Launch new session with headless arg by default

* Add --headless option in carton test

* Improve logging message

* Apply formatter for WebDriverClient module

* Support MS Edge

* Add headless testing test

* Explicitly depend on NIOFoundationCompat

* Avoid public actor field as a 5.5 compiler crash workaround

* Add --headless description in README.md

* Update Sources/CartonCLI/Commands/Test.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

* Apply suggestions from code review for wording

Co-authored-by: Max Desiatov <max@desiatov.com>

* Rename failedToFindDriver -> failedToFindWebDriver

* Rephrase diagnostic message

* Omit explicit internal keyword

* Remove unused goto.Response struct

* Add license header to Tests/WebDriverClientTests/WebDriverClientTests.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: Max Desiatov <max@desiatov.com>
2022-06-10 16:42:20 +00:00
Max Desiatov 48c9179fa0
Update SwiftPM dependencies (#360)
- Dependency updates

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
2022-06-05 13:45:58 +02:00
Geordie J eef2825f78
Add option to disable wasm optimizations (#359)
I am trying to implement an `esbuild` plugin that calls into `carton`. My plan was to call `carton bundle --debug` to get a quick development build and then extract that command's output for use in our esbuild project.

Unfortunately, `carton bundle` still runs `wasm-opt` even on a debug build, which takes 5-10s for our project. The only alternative I can see is `carton dev`, but that runs the dev server / watcher, which we don't want either for a one-off build.

Since changing the behaviour of `carton bundle --debug` to _not_ run `wasm-opt` may cause issues with backwards compatibility, @MaxDesiatov suggested we add a command line option `--wasm-optimizations {size, none}` instead, allowing users to specifically opt out of this behaviour.
2022-06-02 18:40:00 +01:00
Max Desiatov 78d023587c
Use `--static-swift-stdlib` for easier distribution on Linux (#343)
In theory, this should allow us to distribute self-contained binaries on Linux. These wouldn't be statically linked completely, but at least they should no longer depend on a separate dynamic library file with Swift stdlib.

Related to https://github.com/swiftwasm/carton/issues/336.
2022-05-31 11:29:41 +01:00
Yuta Saito 70b06afad8 Add short description for --prebuilt-test-bundle-path 2022-05-31 01:59:14 +09:00
Yuta Saito 820c2afab7
Add --bundle-path option to `carton test` (#358)
* Add --skip-build option to carton test to delegate building to users

* Add test case for --skip-build

* Rename --skip-build to --bundle-path to allow specifying binary path

* Update Sources/CartonCLI/Commands/Test.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

* Rename --bundle-path to --prebuilt-test-bundle-path

* Update Sources/CartonCLI/Commands/Test.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: Max Desiatov <max@desiatov.com>
2022-05-30 16:04:03 +00:00
Max Desiatov 75fc15266f
Update SwiftPM dependencies (#357)
- Dependency updates

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
2022-05-29 11:58:36 +01:00
Max Desiatov 7ef43954cc
Fix linter error in `Builder.swift` (#356) 2022-05-28 20:27:06 +09:00
Yuta Saito 154149b6ea
Clean up integration tests and fixtures (#355) 2022-05-28 09:33:27 +00:00
Yuta Saito 25da29b475 Bump version to 0.15.3, update `CHANGELOG.md` 2022-05-25 00:17:25 +09:00
Yuta Saito c295a21df0
Stop limiting WS frame size to 16kb for large number of test suites (#353) 2022-05-24 07:30:42 +09:00
Carson Katri 7b4c35fc6a
Use standards mode in default index page (#351) 2022-05-23 16:08:47 +00:00
Max Desiatov 0926035d4a
Remove broken job from `release.yml` 2022-05-23 16:52:18 +01:00
Max Desiatov 8b44aa18b5 Bump version to 0.15.2, update `CHANGELOG.md` 2022-05-23 16:07:28 +01:00
Max Desiatov 0e2e4cfdd8
Add missing check for Node.js entrypoint (#350)
Because of the lack of this check the entrypoint files weren't unpacked when missing on `carton test --environment node` runs.
2022-05-23 14:50:50 +00:00
Max Desiatov 4314a92adc Bump version to 0.15.1, update `CHANGELOG.md` 2022-05-23 10:47:13 +01:00
Max Desiatov b5680cbfb7
Fix symlinks not fully cleaned up in Node.js tests (#349)
`FileSystem.isDirectory` returns `false` when running it on broken symlinks, which breaks Node.js tests flow. We should be able to clean up all symlinks, even broken ones. Other we can't create new correct symlinks because broken symlinks already exist at those paths.
2022-05-23 10:37:12 +01:00
Max Desiatov 8130899628
Fix typo in `README.md` 2022-05-20 15:29:43 +01:00
Max Desiatov da99573894
Fix typo in `CHANGELOG.md` 2022-05-20 15:29:20 +01:00
Max Desiatov 683e3e0759
Bump version to 0.15.0, update `CHANGELOG.md` (#348) 2022-05-20 15:27:53 +01:00
Max Desiatov 53bc06c23d
Fix watcher breakage on failed builds (#347)
After switching to `async`/`await` the value of `isBuildCurrentlyRunning` wasn't correctly reset, which led to issues. By resetting the variable in `defer` we guarantee that it will be reset even when errors are thrown.

Resolves #339.
2022-05-20 13:03:34 +00:00
Max Desiatov c834751074
Re-read custom `index.html` on updates (#342)
We were reading custom `index.html` only once on launch, which meant people had to restart `carton dev` every time they've updated `index.html` during the build process to see changes they've made.
2022-05-20 12:42:23 +00:00