Comments (3)
from repo-sandbox.
Two ways:
- NX via inputs/outputs to work out that nothing material has changed since last cache. (This assumes that the last run was cached and retrieved).
- GitHub Action workflow filtering - only apply the workflow if certain files have changed? (How does this extend to multiple deploys?)
from repo-sandbox.
Nx is already doing this via affected and cache for PR environments and int/prod respectively.
Run pnpm nx deploy:int infrastructure
> NX Running target deploy:int for project infrastructure and 2 task(s) it depends on
> nx run infrastructure:"deploy:int" [existing outputs match the cache, left as is]
We ideally still want most GitHub actions to run but the output be a no-op. This means we can still expect workflows to run but inside the workflow they optimize what to run.
We can add GitHub action filtering to the app deploy (to int and prod) workflows as desired. Most cases however Nx will work out whether or not it needs to be deployed and as such it feels redundant to add much in the way of GitHub filtering here. We can always add it if the need arises and if there is an area which Nx will re-run when it really shouldn't do.
For now given that Nx does this fairly well I will close.
from repo-sandbox.
Related Issues (20)
- Cleanup environments on PR close / merge
- Simultenous updates; how does GH actions handle 2 commits in quick succession? HOT 1
- Cache teiring HOT 1
- PR concurrency not working
- Handle shared PR resources
- Get CDK output to PR comments HOT 3
- Handle deployment of multiple apps HOT 1
- Handle dynamic configuration (CDK => REACT) HOT 1
- ELIFECYCLE Command failed with exit code 143. HOT 2
- Fix pr-close SHA calculation
- Configuring different environments HOT 4
- Does updating the lock file cause a re-build/re-deploy of everything? HOT 4
- Label
- Delete cloudfront for PRs
- BucketDeployment is painfully slow
- Handle PR changes that previously resulted in a deployment HOT 1
- Per-pull request environments
- Prettify CDK/test output on PRs HOT 2
- Deploy based on PR label
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 repo-sandbox.