Commit graph

23 commits

Author SHA1 Message Date
Magnus Markling
ca26a44cfb
Add target input (#82)
* add rust-target as input

Signed-off-by: Magnus Markling <magnus@markling.com>

* update readme

Signed-off-by: Magnus Markling <magnus@markling.com>

* fix spelling error

Signed-off-by: Magnus Markling <magnus@markling.com>

* Update README.md

Signed-off-by: Magnus Markling <magnus@markling.com>
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>

* update example

Signed-off-by: Magnus Markling <magnus@markling.com>

* use actions-rust-lang instead of dtolnay

Signed-off-by: Magnus Markling <magnus@markling.com>

* use stable instead of stable 2 months

Signed-off-by: Magnus Markling <magnus@markling.com>

* Update README.md

Signed-off-by: Magnus Markling <magnus@markling.com>
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>

* add missing input def

Signed-off-by: Magnus Markling <magnus@markling.com>

* rebuild index.js

Signed-off-by: Magnus Markling <magnus@markling.com>

* update action.yml

Signed-off-by: Magnus Markling <magnus@markling.com>

---------

Signed-off-by: Magnus Markling <magnus@markling.com>
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
2024-07-14 19:29:10 +00:00
Predrag Gruevski
c7306483f6
Avoid leading dash in cache key. (#67)
Fixes #66.
2024-03-19 19:33:21 +00:00
Predrag Gruevski
17d9392a8c
Update dependency and Node versions. (#68)
* Update dependency and Node versions.

* Re-lock.
2024-03-19 18:32:54 +00:00
Predrag Gruevski
e275dda72e
Document the new action inputs. (#52) 2023-06-06 19:35:53 +00:00
Predrag Gruevski
49c4f979e7
Ensure that failing tests prevent PRs from being merged. (#50) 2023-06-06 14:59:32 -04:00
Predrag Gruevski
06053f9c6c
Support specifying features to test. (#49) 2023-06-06 14:49:48 -04:00
Mieszko Grodzicki
ca4682c48b
Use folder-hash instead of hash-files. (#45)
* Use folder-hash instead of hash-files.

* Fix indentation in jest.config.js

* awaits in separate lines
2023-04-30 15:37:33 -04:00
Mieszko Grodzicki
69730c4d83
Add input release-type (#39) 2023-04-23 20:37:51 +02:00
Mieszko Grodzicki
8b981cde1a
Add input exclude, allow list in package (#40)
* Add exclude, allow lists in package

* Add test for input exclude

* Second dummy crate in test workspace

* New tests

* Fix cache key

* Forgot about flat()

* Reflect changes in docs

* New key in cache test

* Shorter job name

* Allowed to fail -> expected to fail

* Update README.md

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>

* Hash inputs in cache key

* Update cache test

* Update README

---------

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
2023-04-23 14:24:06 -04:00
Mieszko Grodzicki
7eca687541
Change '' to 'manual' for rust-toolchain input (#41)
* Change '' to 'manual' for rust-toolchain

* Default is stable, modify tests
2023-04-23 12:35:09 -04:00
Mieszko Grodzicki
670e9a45ae
Include package and manifest-path in the cache key (#38)
* New caching strategy

* Update README.md

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>

---------

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
2023-04-23 10:37:17 +02:00
Mieszko Grodzicki
f2825830a8
Environmental variables (#28) (#36)
* Setting environmental variables

* Test the action also on 1.67
2023-04-17 08:45:37 -04:00
Mieszko Grodzicki
f9ffdc4a3d
Add inputs to control the Rust toolchain (#34)
* Add inputs for controlling rust toolchain

* Add tests for new inputs

* Negated ifs!

* Fix action input name

* Better description of rust-override

* New logic of choosing toolchain

* Add explaining comment.

* Add rust-toolchain.toml test
2023-04-08 10:21:06 -04:00
Mieszko Grodzicki
a976a2e219
Remove temporary fix for Windows machines. (#32) 2023-04-05 15:19:29 -04:00
Mieszko Grodzicki
913235ca66
Baseline rustdoc caching (#29)
* Baseline caching - initial work

* Add comment explaining the change of CARGO_TARGET_DIR.

* Update README.md

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>

* Refactor getRustcVersion and getCargoSemverChecksVersion

* Move helper functions outside RustdocCache class.

* cachePath passed in constructor

* workspaceRoot as constructor argument

* Inline getManifestDir

* Change target to semver-checks/target

* Fix missing hash-files

* Upload cache if its hash changes

* Add input prefix-key

---------

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
2023-04-04 09:26:44 -04:00
Mieszko Grodzicki
88e90a8d87 Tests and fixes for inputs (#14) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
9c72228a41 Proper error handling 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
b4b317a6f3 Rename crate-name to package 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
2b57dfc438 [TEMP-FIX] Fix mkdir failing if index already exists (#11) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
40af1490bc Add eslint and prettier (#10) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
ea31db666e [TEMP-FIX] Add creating index directory on Windows (#9) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
93ad2d92a3 Add ending newlines 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
893685e69b brand-new action in node.js (#4) 2023-02-27 16:42:26 -05:00