Commit graph

77 commits

Author SHA1 Message Date
Matthias Endler
f1adc788cf
Only create link issue on error 2023-06-30 23:46:25 +02:00
Dariusz Porowski
7a35a655d2
Alpine Docker Image Support (#1074) 2023-05-22 12:36:22 +02:00
Matthias
e9812e4295 Change back to macos-latest as there don't seem to be any bigger workers available right now 2023-04-25 17:54:57 +02:00
Matthias
ea077a22d9 Switch to new macOS workers
https://github.blog/changelog/2023-04-24-github-actions-faster-macos-runners-are-now-available-in-open-public-beta/
2023-04-25 15:49:04 +02:00
Matthias
58d6d414ee Add debug build 2023-04-25 15:23:59 +02:00
Matthias
3a594235cb Revert back to old release pipeline 2023-04-25 15:22:30 +02:00
Matthias
f9f2d7bc1d Don't try to upload release binaries on workflow_dispatch 2023-04-25 13:35:44 +02:00
Matthias Endler
942ce2984a
Create on-demand binaries (useful for debugging) (#1054) 2023-04-25 13:31:10 +02:00
Matthias Endler
64a36410b5
Build new Docker image on push to master 2023-04-12 00:56:15 +02:00
Matthias Endler
6c24a22df6
set latest tag for default branch 2023-04-12 00:54:13 +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 Endler
20ecb618e4
Fix automerge config (#904)
With the latest changes in https://github.com/lycheeverse/lychee/pull/893 I think I broke automerge.
Reverting some of the changes to fix that.
2023-01-05 14:51:36 +01:00
Matthias Endler
14707d19b3
Don't build Docker image for pushes to arbitrary branches (#894)
Avoids building Docker image twice on pull requests
2023-01-02 14:07:29 +01:00
Matthias Endler
ece6295b82
Update automerge config (#893) 2023-01-02 13:53:23 +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
Matthias
5ac22a3207
Merge all updates as long as they pass CI (#737) 2022-08-16 12:21:07 +02:00
Matthias
344ec8120d
Update links.yml 2022-08-10 17:37:24 +02:00
Matthias
e4e8f5703d
Update auto-merge.yml 2022-08-08 16:03:44 +02:00
Matthias
72ed282c86
Create auto-merge.yml 2022-08-05 19:45:15 +02:00
faust
31566419a0
Automatically update Docker description on push (#697) 2022-07-22 17:12:01 +02:00
Matthias
005ce05c24
Trigger CI on push or pull request, but not both (#689)
See
https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
for more info
2022-07-11 18:07:46 +02:00
MichaIng
fb4c6d5559
Skip Docker login on PRs from forks (#586)
Since github.repository_owner refers to the base repository on pull request events, while secrets need to exist on the head repository, the Docker Hub login fails for pull requests opened from forks. This commit assures that this step in case of pull request events only runs for internal pull requests, i.e. when head and base repository are the same.

For the actual Docker Hub upload, no change is required: The build can run in every case, the upload is not done on pull request events in general.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-04-06 19:35:28 +02:00
Matthias
8d9619fb67
Only build release image when release workflow was completed 2022-03-22 20:11:15 +01:00
Matthias
8067e74053
Fix default branch 2022-03-22 19:43:08 +01:00
Matthias
6887543105
Skip Docker push for dependabot PRs 2022-02-18 16:29:26 +01:00
Matthias
21c92ef977
Disable Docker login for dependabot (#519)
See https://github.com/docker/login-action/issues/65
2022-02-18 16:08:48 +01:00
Matthias
d821168f24
Only login to Dockerhub on image push (#515) 2022-02-18 10:49:47 +01:00
Matthias
812663d832
Prevent flaky tests (#514)
Move from example.org to example.com, which seems to be more permissive for testing
2022-02-18 10:29:49 +01:00
Matthias
97e89d7f7b
Multiarch for main Docker workflow (#506) 2022-02-11 16:12:07 +01:00
Matthias
71f3877933
Start pushing on non-pull request 2022-02-11 09:45:40 +01:00
Matthias
12f4134f77
Add Docker semver tagging for new multiarch image (#503) 2022-02-11 09:40:08 +01:00
Matthias
89106d11aa
Update rust.yml 2022-02-06 15:51:18 +01:00
Matthias
0b9e9ecf57
Uppercase Release action 2022-02-06 15:50:24 +01:00
Matthias
bd1e8ba8db Docker workflow fixes
See https://github.com/lycheeverse/lychee/pull/406#issuecomment-983903903
for dicussion
2021-12-02 11:49:43 +01:00
Matthias
ddd4f82bbf
Test pushing Docker new images 2021-12-01 16:06:23 +01:00
Matthias
22ac3c213c
Add dispatch 2021-12-01 10:22:34 +01:00
faust
7353c8793b
Publish arm64 docker image (#406) 2021-12-01 09:58:32 +01:00
Matthias
34f379319d
Fix link checking after upgrade to 0.8.0 (#386) 2021-11-05 22:31:05 +01:00
Matthias
251332efe2
Cache absolute_path to decrease allocations (#346)
* Cache `absolute_path` to decrease allocations

While profiling local file handling, I noticed that resolving paths was taking a
significant amount of time. It also caused quite a few allocations.
By caching the path and using a constant value for the current
directory, we can reduce the number of allocs by quite a lot.
For example, when testing on the sentry documentation, we do 50,4%
less allocations in total now. That's just a single test-case of course,
but it's probably also helping in many other cases as well.

* Defer to_string for attr.value to reduce allocs
* Use Tendrils instead of Strings for parsing (another ~1.5% less allocs)
* Move option parsing code into separate module
* Handle base dir more correctly
* Temporarily disable dry run
2021-10-05 01:37:43 +02:00
Matthias
94cae4e9e5
Skip creating issues on forks (#340) 2021-09-20 12:11:31 +02:00