Commit graph

19 commits

Author SHA1 Message Date
Matthias
d616411668 Update to newest output syntax 2024-01-05 17:53:15 +01:00
Matthias
089c737aeb simplify check 2024-01-05 17:39:35 +01:00
Matthias
d7965aa4fa Check if lychee-lib is already published 2024-01-05 17:32:39 +01:00
dependabot[bot]
4ebb475a80
Bump the dependencies group with 1 update (#1254)
Bumps the dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout).

- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-17 21:42:18 +02:00
Stefan Kreutz
d6ea7bbbc4
Improve 'cargo tree' check (#1200)
The '! cargo tree -i openssl-sys' command ignores when 'cargo tree'
fails for other reasons than not depending on the openssl-sys crate.
This commit changes the command to propagate such a failure.
2023-08-05 18:11:01 +02:00
Stefan Kreutz
b1b32e7717
Fix rustls-tls feature (#1194)
* Fix rustls-tls feature

Commit 14e74879 (cookie support #1146) re-introduced an unconditional
dependency on the openssl-sys crate. That is, building Lychee with the
Rustls TLS backend now requires OpenSSL. I suppose this change was
unintended, maybe due to automatic conflict resolution. If not, please
let me know.

You can review the re-introduced dependency like so:

```
cargo tree --no-default-features --features rustls-tls -i openssl-sys
```

This commit puts the OpenSSL dependency behind the native-tls feature
flag again.

You can check the TLS features like so:

```
cargo check --workspace --all-targets --features vendored-openssl

cargo check --workspace --all-targets --all-features

cargo check --workspace --all-targets --no-default-features --features rustls-tls
```

Maybe this should be added to CI. But I don't want to waste anybody's
time.

* Check feature flags during CI

Adds a new CI job 'check-feature-flags' to verify the following:

- Lychee with rustls-tls feature only doesn't depend on OpenSSL
- Cargo check passes with default features
- Cargo check passes with all features
- Cargo check passes with rustls-tls feature only
2023-08-04 15:11:29 +02:00
Matthias Endler
942ce2984a
Create on-demand binaries (useful for debugging) (#1054) 2023-04-25 13:31:10 +02:00
Matthias Endler
55797071b0
Fix nested URL extraction in verbatim elements (#988)
Skipping URLs in verbatim elements didn't take nested
elements into consideration, which were not verbatim.

For instance, the following HTML snippet would yield
`https://example.com` in non-verbatim mode, even if
it is nested inside a verbatim `<pre>` element:

```html
<pre><a href="https://example.com">link</a></pre>
```

This commit fixes the behavior for both `html5gum` and
`html5ever`.

Note that nested verbatim elements of the same kind
still are not handled correctly.

For instance,  the following HTML snippet would still yield
`https://example.com`:

```html
<pre>
  <pre></pre>
  <a href="https://example.com">link</a>
</pre>
```

The reason is that we currently only keep track of a single
verbatim element and not a stack of elements, which we
would need to unwind and resolve the situation.

Fixes https://github.com/lycheeverse/lychee/issues/986.
2023-03-11 15:18:25 +01:00
Matthias
08d71e6196 Add new test config, which covers all tests 2023-03-03 12:13:09 +01:00
Matthias
257ecd7bc0 disable all features flag (breaks example domain tests) 2023-03-03 12:13:09 +01:00
Matthias Endler
b4cc843f33 Add missing test- and linting flags 2023-03-03 12:13:09 +01:00
Lucius Hu
7abbaa218a
ci: update checkout action to v3 (#927)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2023-01-21 16:13:48 +01:00
Matthias Endler
1c297b43be
Run publish-check in parallel with other jobs (#922)
I don't see the reason why publish-check has to wait for the other jobs to complete. After all, it's yet another "lint".
Running it in parallel might shave of a significant amount of time from our CI builds.
2023-01-17 15:02:30 +01:00
Matthias Endler
ece8b7310f
Try nextest for CI builds (#921) 2023-01-17 14:52:17 +01:00
Matthias Endler
11b693b37c
Add Github Actions cache (#919) 2023-01-17 14:30:16 +01:00
Matthias
9927cc5702
Wait for crates.io publication
crates.io sometimes takes a bit until new releases
are available through the API.
This can break the binary release because it depends
on the lychee binary. Therefore let's wait a bit
instead of immediately publishing to reduce
the risk that this is happening.
2022-11-09 00:23:45 +01:00
Matthias
287624691b
Move back to cargo publish (#814) 2022-11-08 17:11:09 +01:00
Matthias
8a17b9e5c8
Add back execution of CI pipeline on tags 2022-11-08 12:41:48 +01:00
Matthias
cc1b1ce25d
Rename rust.yml to ci.yml 2022-11-03 11:11:40 +01:00
Renamed from .github/workflows/rust.yml (Browse further)