Comments (3)
Hi @mnapoli thanks - I was able to get it working with Serverless v3. However, in v1, I was able to programmatically create a Serverless instance in my tests. That no longer works, which means writing tests is tougher - is there a recommended way to test plugins now?
from serverless-plugin-git-variables.
Awesome, thanks for the update!
Regarding tests, there is the https://github.com/serverless/test package that should help with that. Maybe @medikoo can answer that better than me as well.
from serverless-plugin-git-variables.
@jacob-meacham for testing, I recommend using tool we're relying internally runServerless
(https://github.com/serverless/test/blob/master/docs/run-serverless.md), but note that for v3, it changed internally a bit, and changed version is published with @serverlesss/test@pre-9
pre-release)
from serverless-plugin-git-variables.
Related Issues (20)
- Add client-side validation of git variables
- Support adding `-match <pattern>` when calling git describe
- if there is no git user, using `${git:user}` kills the deploy
- Injected variables not included in `serverless print` HOT 2
- Refactor to use NodeGit HOT 1
- Release 3.3.0 fails with invalid git command HOT 5
- sporadic git command failed "git write-tree" HOT 15
- Git Command Fails - Suspected Timeout HOT 4
- Wrong values in env vars HOT 3
- "Rejects on bad git command" test fails
- Document isDirty HOT 1
- Display GIT_USER and GIT_EMAIL by default HOT 1
- Failing build when more then one tag points to commit HOT 4
- GIT_USER and GIT_EMAIL are not exported by default HOT 2
- Old version of babel-runtime with deprecated core-js HOT 4
- Feature request: Add support for commit subject HOT 1
- Staged changes are not counted as 'dirty' by git:isDirty HOT 1
- Approached unrecognized configuration variable sources: "git". HOT 7
- Not works for Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-plugin-git-variables.