Commit graph

40 commits

Author SHA1 Message Date
Predrag Gruevski
9a25a25ffa
Update CI to use Rust 1.74, the new MSRV. (#69) 2024-03-19 17:12:20 +00:00
Predrag Gruevski
b3bcbfd5ac
Minimum Rust known to avoid all rustdoc JSON bugs is 1.73 (#60) 2023-11-09 23:57:34 +00:00
Predrag Gruevski
050645d214
Minimum supported Rust is 1.67. (#51) 2023-06-06 15:04:58 -04: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
43d6c89249
Remove TODOs from workflows. (#35)
* Remove TODOs from workflows.

* Remove TODO in test-cache.yml
2023-04-08 10:19:56 -04:00
Mieszko Grodzicki
461983b3bb
Add test for baseline caching (#33)
* Cache test

* 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

* Add workflow testing caching

* New line

* Add checking the updated cache

* Missing semicolon

* Bad job name in cache key

* Upload cache if its hash changes

* Test options cache-key and prefix-key

* Need to use restore-keys

* Is path a problem?

* Absolute path

* Move

* Fix restore inputs

* Verify

* Revert debug

* Rustc and semver-checks versions should not be fixed!

* debug test

* key not being a prefix

* Missing outputs

* Revert letter change in hash

* Update CI README

* TODO comments, shorter names

* Better names

* check the key

* Missing '

* Remove space

* Missing outputs

* Remove hash check

---------

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

* Remove inconsistent newlines from workflows README

---------

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
2023-04-07 10:54:46 -04:00
Mieszko Grodzicki
5fbde10d11 Make ref-slice-ref required 2023-02-28 18:59:49 -05:00
Mieszko Grodzicki
1fb47cb228 Get rid of fetch-depth: 0 in test-manifest-path-with-space 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
705cfec6cc Minor fixes in inputs specifications 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
e5740164f3 Env variables in ci.yml 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
5618d5abb9 CI improvements (#17) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
9636ecd1f2 Explain user and email in npm-cli-login (#15) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
88e90a8d87 Tests and fixes for inputs (#14) 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
733726affb Use matrix strategy in CI 2023-02-27 16:42:26 -05:00
Mieszko Grodzicki
9d38089c3c Add github-token input (#13) 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
aa69e72300 Add dist/ check to CI (#8) 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
Mieszko Grodzicki
1227c17749 Add TODO comments 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
554ee23ce6 Document assumptions 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
9ba317dc14 Improve jobs names 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
aa34edcb6d Make checking the outcome more descriptive 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
39b7aa82fa Fetch all branches at once. 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
35aa6c3e0a Id fix 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
5801563129 Cleaning, both tests in single job. 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
58fab5bd52 Add id for action step 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
9478ccb3f7 Debug 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
23d16da9fa Add action checkout 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
855a55792a Fix refs 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
6bde90e7a1 Fix repository url 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
37b0a9178b Change action path 2023-01-03 09:45:54 -05:00
Mieszko Grodzicki
2816990fcf Tests - initial version. 2023-01-03 09:45:54 -05:00