software-mansion / setup-scarb Goto Github PK
View Code? Open in Web Editor NEWSets up Scarb in your GitHub Actions workflow.
Home Page: https://docs.swmansion.com/scarb/
License: MIT License
Sets up Scarb in your GitHub Actions workflow.
Home Page: https://docs.swmansion.com/scarb/
License: MIT License
Related to this comment under setup-bun
.
Right now sha256 hash used to determine cache key is created from Scarb.toml
file. As soon as Scarb lock file will be implemented it should be used instead, as that's what other package managers such as npm or yarn are doing to cache reliably.
Depends on software-mansion/scarb#126
Better to avoid having the scarb version repeated across many places
Something like this:
- name: Getting scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: from-tool-versions
/.tool-versions
in the repo:
scarb 0.5.2
No response
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20
Modify the action to run on Node 20 instead of Node 16. For guidance, refer to: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
No response
We currently have this monster in our codebase. Let's use the newly added scarb cache path
command to make it simpler.
See text in problem
Depends on software-mansion/scarb#558
One of our users has a Scarb project in a submodule/subdirectory of the repository. This project contains a .tool-versions
file that the user wants to use as reference point for version selection, but there is no way to instruct the action to look for this file elsewhere than the working directory.
Add a new input, named tool-versions
, typed as an optional string. It will accept a path, absolute or relative to action's PWD, to the tool-versions file, that must exist. If provided, the action will always and only look for Scarb version in that provided path. No other deduction techniques will be applied, and inability to look for information should yield an error.
Example:
- uses: software-mansion/setup-scarb@v1
with:
tool-versions: ./my-submodule/.tool-versions
Most of the meat lies in this file: https://github.com/software-mansion/setup-scarb/blob/67ef98b555967b95dd7fc56ecdd1e93ce7cefdae/lib/versions.js. It is called from here:
Lines 15 to 22 in 67ef98b
Like setup-ruby
does with .ruby-version
Allow the action to set up caching of Scarb cache out of the box. You'll need to use post-run hook in the action and call actions/cache library.
Links:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.