Ivan Enderlin
a23bb8f5a0
chore(docs): Rephrase a little bit the Github Actions steps.
2022-06-22 11:57:41 +02:00
Ivan Enderlin
8db58986fb
chore(bindings): Move crypto-nodejs and crypto-js into the bindings/ directory.
...
`matrix-sdk-crypto-nodejs` and `matrix-sdk-crypto-js` are no longer
default members of the Cargo virtual workspace. The Github Actions
workflows for the bindings now live in a `bindings_ci.yml` files
(ideally, it should be in a subdirectory,
`.github/workflows/bindings/ci.yml` but it doesn't work).
2022-06-22 11:54:49 +02:00
Ivan Enderlin
6ad323bc4e
test: Run tests faster with nextest
...
test: Run tests faster with `nextest`
2022-06-22 09:56:02 +02:00
Ivan Enderlin
3bfc68d476
test: Add missing cargo-nextest installation.
...
This patch also changes the step's name from Clippy to Test.
2022-06-22 09:26:51 +02:00
Ivan Enderlin
eb33333925
test: Run doctests manually.
...
`cargo-nextest` doesn't support doctests for now, so we must run them
“manually” by running a separate `cargo test --doc` command.
2022-06-22 09:26:51 +02:00
Ivan Enderlin
399862d955
test: Run tests faster with nextest.
...
> [`cargo-nextest`](https://nexte.st/index.html ) is a next-generation
> test runner for Rust projects.
This patch installs and uses `nextest` to run our own tests.
Comparing `cargo test` and `cargo nextest` with hyperfine provides the
following results:
```sh
$ hyperfine 'cargo test --workspace' 'cargo nextest run --workspace && cargo test --doc'
Benchmark 1: cargo test --workspace
Time (mean ± σ): 51.785 s ± 2.066 s [User: 183.471 s, System: 10.563 s]
Range (min … max): 49.151 s … 56.641 s 10 runs
Benchmark 2: cargo nextest run --workspace && cargo test --doc
Time (mean ± σ): 44.556 s ± 0.894 s [User: 192.213 s, System: 11.441 s]
Range (min … max): 43.170 s … 45.762 s 10 runs
```
Benchmark 2 is 1.16 times faster than Benchmark 1.
2022-06-22 09:26:07 +02:00
Ivan Enderlin
8b2237fa7a
Merge branch 'main' into feat-crypto-js-next
2022-06-21 11:38:48 +02:00
Jonas Platte
02aa537f2a
chore: Keep uniffi version in sync across deps, CI
2022-06-17 13:37:07 +02:00
Ivan Enderlin
c56ab5928c
test(crypto-js): Add a workflow to test matrix-sdk-crypto-js.
2022-06-14 16:34:08 +02:00
Ivan Enderlin
073fb45580
feat(crypto-nodejs): Define Node.js versions policy.
...
We now support only “current”, “active” or “maintenance” versions
according to https://nodejs.org/en/about/releases/ , which are
compatible with NAPI v6.
2022-06-14 16:05:01 +02:00
Ivan Enderlin
3833d35348
chore(crypto-nodejs): Drop Node.js v12.17.
...
There is a segfault with `napi-rs` and Node.js in v12.17. It's an old
version, it may be fair to drop its support for now. Let's see if
people would need it in the future, we may work on `napi-rs` to fix
this bug in case it's really necessary.
2022-06-14 16:05:01 +02:00
Damir Jelić
38d771cca6
ci(coverage): Set the correct out format for CI coverage reports
2022-06-14 12:01:03 +02:00
Jonas Platte
e3edf0139a
Enable rustdoc-map nightly feature via .cargo/config.toml
...
… instead of using -Z on the command line.
2022-06-13 14:30:10 +02:00
Jonas Platte
d07001a581
chore: Work around a cargo bug
2022-06-13 14:30:10 +02:00
Ivan Enderlin
dad035d170
chore(test): Configure tarpaulin to use its config file.
2022-06-13 10:46:29 +02:00
Ivan Enderlin
253affeb0c
feat(crypto-nodejs) Implement missing APIs
...
feat(crypto-nodejs) Implement missing APIs
2022-06-09 21:38:41 +02:00
Ivan Enderlin
1b2c644277
test(crypto-nodejs): Set up CI to run the test suites.
2022-06-09 11:34:16 +02:00
Stefan Ceriu
901b670a22
Use the nightly toolchain together with the newly introduced target-applies-to-host on the sdk-ffi crate debug builds to avoid cache corruption issues. Switched back to debug mode as the internal tokio crashes went away
2022-06-08 08:55:28 +02:00
Ivan Enderlin
7931c4a589
chore(crypto-js): Clean up code and make CI happy.
2022-05-31 08:44:36 +02:00
Ivan Enderlin
efe5ea6a9c
test(ci): Exclude matrix-sdk-crypto-(js|nodejs) from code coverage.
2022-05-31 08:40:16 +02:00
Ivan Enderlin
6afeeea56c
test(ci): Do not compile matrix-sdk-crypto to Wasm, but -crypto-js instead.
2022-05-31 08:40:16 +02:00
Jonas Platte
453cae641b
fix(docs): Remove history gh-pages branch
...
This should drastically reduce the repository size.
2022-05-23 12:57:45 +02:00
Damir Jelić
d1410fcded
ci: Run cargo audit every day
2022-05-19 10:03:46 +02:00
Benjamin Kampmann
e3503fe102
ci: one more move
2022-05-18 11:56:38 +02:00
Benjamin Kampmann
4522b4e8f5
ci: move rust cache to include uniffi bindgen install
2022-05-18 11:32:03 +02:00
Benjamin Kampmann
886809b579
chore(Apple): Move apple into subfolder
2022-05-18 11:24:30 +02:00
Stefan Ceriu
4b8b9db075
Have FII action only run on PRs targetting main, similar to the CI one.
2022-05-18 11:49:29 +03:00
Stefan Ceriu
45cb162e5a
Fix sample project, cleanup tests and add github action
2022-05-18 11:08:51 +03:00
Benjamin Kampmann
08f180cdb7
refactor: Rename matrix-qrcode to matrix-sdk-qrcode
2022-05-09 16:12:11 +02:00
Benjamin Kampmann
7dd7f5a611
Merge pull request #626 from matrix-org/gnunicorn/issue565
...
Fixing benchmarking,
fixes #565
2022-05-03 10:20:15 +02:00
Benjamin Kampmann
aad0cbe496
ci(benchmarking): disable benchmark runs other than manually requested
2022-05-03 09:39:35 +02:00
Benjamin Kampmann
12894aff99
ci(benchmark): Fixing output format
2022-05-02 17:01:56 +02:00
Benjamin Kampmann
9763c13a34
ci(benchmarks): Switch to Mr. B access token
2022-05-02 16:36:44 +02:00
Benjamin Kampmann
54c93e4982
ci(benchmarks): more specific cargo-bench params
2022-05-02 16:30:30 +02:00
Benjamin Kampmann
827f8c3e17
ci(benchmarking): Add github token to benchmarking
2022-05-02 14:17:13 +02:00
Benjamin Kampmann
d1aa463b7c
Apply suggestions from code review
...
Co-authored-by: Jonas Platte <jplatte@element.io >
2022-05-02 11:43:37 +02:00
Benjamin Kampmann
fb8ddfa07d
style: Fixing name
2022-04-29 17:56:50 +02:00
Benjamin Kampmann
2803694cdf
ci(benchmarks): Adding Benchmarks to CI
2022-04-29 17:54:53 +02:00
Benjamin Kampmann
a7b8cc5810
ci: remove unnecessary dependency
2022-04-29 17:28:51 +02:00
Benjamin Kampmann
a70d05cb63
Merge branch 'main' into ben-ci-fixup
2022-04-29 15:15:46 +02:00
Benjamin Kampmann
9b6fe94bc8
ci(tooling): Improved Style Checking
...
- separate Styles from ci.yaml into its own for clarity
- extend pre-commit config with other useful defaults
- move clippy, tests and typos into a push-based pre-commit
2022-04-29 14:50:12 +02:00
Benjamin Kampmann
87ae677fc3
fix(ci): fixing it right this time
2022-04-28 13:15:27 +02:00
Benjamin Kampmann
5d3c14f309
fix(ci): fixing the wasm ci command
2022-04-28 13:12:06 +02:00
Benjamin Kampmann
608eca6166
test(indexeddb): activate indexeddb tests for CI
2022-04-28 12:43:07 +02:00
Benjamin Kampmann
16ec5fe9ff
chore: Merge remote-tracking branch 'origin/main' into gnunicorn/issue617
2022-04-28 11:23:32 +02:00
Benjamin Kampmann
5b13cf4e92
Apply suggestions from code review
...
Co-authored-by: Jonas Platte <jplatte@element.io >
2022-04-28 10:25:03 +02:00
Benjamin Kampmann
4b6ed22476
chore(ci): install wasm-pack
2022-04-27 17:20:14 +02:00
Benjamin Kampmann
6a81ec226e
chore: enable wasm-pack tests in ci
2022-04-27 16:58:42 +02:00
Kévin Commaille
5ce6c07d9c
ci: Update codecov github action to v3
2022-04-25 12:44:33 +02:00
Kévin Commaille
314a9dec6c
ci: Run code coverage for pull requests
2022-04-25 12:08:58 +02:00