Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Notification #15

Closed
wants to merge 365 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
365 commits
Select commit Hold shift + click to select a range
ef99970
ci: add test/coverage scripts and update README
floriaaan Apr 4, 2023
d583811
build(docker): add Dockerfile
floriaaan Apr 4, 2023
9045d57
fix(ci): fix dependencies lock file is not found
floriaaan Apr 4, 2023
7ec3c76
feat(handlers): add delivery-person handlers
floriaaan Apr 8, 2023
90c882e
feat(tf): add terraform files
floriaaan Apr 10, 2023
004e5f1
feat(k8s): add k8s files
floriaaan Apr 10, 2023
ae2b394
ci: add tests (but test script is disabeld)
floriaaan Apr 10, 2023
064a8b0
fix(docker): fix the Dockerfile build
Anatole-Godard Apr 17, 2023
1ddabc9
fix(docker): precise the .env in the comment that run the image
Anatole-Godard Apr 17, 2023
ce773dc
fix(proto): remove the symbolic link to /services/proto/
Anatole-Godard Apr 17, 2023
2a70981
fix(types): fix type errors
Anatole-Godard Apr 17, 2023
31aa6ac
fix(k8s): fix deployment
Anatole-Godard Apr 18, 2023
9f90f48
feat(terraform): update general terraform
Anatole-Godard Apr 19, 2023
64a2be6
ref: change publish job
floriaaan Apr 19, 2023
56b83ae
ref(ci): change actions/checkout@v2 -> actions/checkout@master
floriaaan Apr 19, 2023
15453b7
feat(infra): update general terraform and change the delivery image
Anatole-Godard Apr 19, 2023
6883846
feat(github action): update delivery CICD
Anatole-Godard Apr 19, 2023
b3df9fb
feat(github): update the CICD
Anatole-Godard Apr 20, 2023
6936b36
feat(github): add permission
Anatole-Godard Apr 20, 2023
3879a80
feat(github): update permission
Anatole-Godard Apr 20, 2023
ce0e226
feat(github): add environment
Anatole-Godard Apr 20, 2023
0902ef3
feat(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
85bb2ef
refactor(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
0cbb547
feat(github): update general terraform
Anatole-Godard Apr 20, 2023
a7efd49
git(ignore): remove root lockfile and add ignore files
floriaaan May 10, 2023
5f9731b
Merge branch 'delivery' of https://github.com/floriaaan/goodfood into…
floriaaan May 10, 2023
744a9ae
fix(prisma): add "native" to targets
floriaaan May 10, 2023
afc4927
fix(proto): add proto symlink
floriaaan May 10, 2023
058a9a3
feat(amqp): add amqp log publisher
floriaaan May 10, 2023
e0e9a98
feat(proxy): add serverproxy
floriaaan May 10, 2023
0daa2f9
ref(proxy): remove log in handlers
floriaaan May 10, 2023
60d4cbf
feat(validate): add validate jwt token route
Anatole-Godard May 11, 2023
0d4b9d3
test: remove tests
floriaaan May 12, 2023
0ebccf0
feat(tf): add terraform files
floriaaan Apr 11, 2023
47d98da
fix(typo): change "delivery" to "stock"
floriaaan Apr 16, 2023
2e53865
feat(user): add user route
Anatole-Godard May 12, 2023
435f519
Merge branch 'stock' of https://github.com/floriaaan/goodfood into stock
floriaaan May 13, 2023
a62f6a3
Merge remote-tracking branch 'origin/dev' into feat/add-users-service
Anatole-Godard Jul 3, 2023
d091706
Add all functionnality
PierreLbg Jul 3, 2023
be7e732
fix(models): update models to fix the migration
Anatole-Godard Jul 3, 2023
e3a9b7a
Add connection to Azure
PierreLbg Jul 3, 2023
5a6803a
refactor(proto): update proto
Anatole-Godard Jul 3, 2023
3a16915
feat(logger): add amqp logger
floriaaan Jul 3, 2023
03aaaee
feat(docker): add global docker compose for log service
floriaaan Jul 3, 2023
e64b79b
doc(readme): add setup and tests
floriaaan Jul 3, 2023
37095b3
Add image
PierreLbg Jul 3, 2023
de3479d
feat(proto): update main addresses methods
Anatole-Godard Jul 4, 2023
52d3f24
feat(user service): add main address routes
Anatole-Godard Jul 4, 2023
9f9a5cf
feat(restaurant/group): add restaurant and group
floriaaan Jul 4, 2023
cc77eb0
feat(log): add log publishing
floriaaan Jul 4, 2023
70c5b1d
feat(code): add security on metric code
floriaaan Jul 4, 2023
381a569
ref: add try-catch block
floriaaan Jul 5, 2023
82470c6
ref(structure): split project to 3 parts: server, tests, cronjobs
floriaaan Jul 5, 2023
1f2acd3
doc: move readme
floriaaan Jul 5, 2023
90591d3
feat(user service): add logger and default values in the database
Anatole-Godard Jul 5, 2023
d848710
feat(user service): fix code analyse issues
Anatole-Godard Jul 5, 2023
0f2378b
feat(user service): fix routes
Anatole-Godard Jul 5, 2023
ff8a052
feat(reporting): add restaurant_id to proto/schema, add affluence han…
floriaaan Jul 6, 2023
fe283e1
ref(db-engine): switch from mongo to postgres
floriaaan Jul 6, 2023
6262271
feat(reporting): add top5-selling handler
floriaaan Jul 6, 2023
adea999
feat(user service): fix getUser route
Anatole-Godard Jul 6, 2023
4491535
feat(reporting): add implementation for top5 selling handler
floriaaan Jul 6, 2023
6e73936
Fix terraform
PierreLbg Jul 6, 2023
226c043
ref(date): split function and write tests
floriaaan Jul 6, 2023
2677219
Test send log to Florian machine
PierreLbg Jul 6, 2023
473c3ea
feat(user service): fix register route
Anatole-Godard Jul 6, 2023
a38fce1
doc(readme): change service for delivery_type metric
floriaaan Jul 6, 2023
ca22e4c
feat(user service): fix logIn route
Anatole-Godard Jul 6, 2023
8a2785d
fix(create/update): relay on basket.string to generate json and total
floriaaan Jul 6, 2023
63b07a9
feat(reporting): add delivery type handler
floriaaan Jul 6, 2023
eec272d
fix(ci): update pnpm from '7' to latest
floriaaan Jul 6, 2023
72f2efa
fix(test): add missing properties
floriaaan Jul 6, 2023
fadd6bc
Merge pull request #3 from floriaaan/order
floriaaan Jul 6, 2023
941c398
doc: add markdwon files
floriaaan Jul 6, 2023
ba56d3c
feat(tf): add terraform files
floriaaan Apr 16, 2023
366e92d
feat(init): add server dependencies
floriaaan May 9, 2023
4937f1c
feat(k8s): add k8s config files
floriaaan May 9, 2023
e1625f4
feat(grpc): add grpc config files
floriaaan May 9, 2023
870b937
feat(libs): add libs
floriaaan May 9, 2023
4a432fe
feat(handlers): add handlers
floriaaan May 9, 2023
121bc82
feat(server): add main server
floriaaan May 9, 2023
27093d9
feat(ci): add workflow
floriaaan May 10, 2023
fabd261
feat(data-structure): add toGrpc, parseStruct & toStruct methods
floriaaan May 10, 2023
5eb9873
fix(ci): remove generate grpc reflection from npm postinstall script
floriaaan May 10, 2023
2be3075
feat(tests): add tests
floriaaan May 10, 2023
651bad3
feat(proxy): add server proxy to add amqp publishing log
floriaaan May 10, 2023
50106f5
fix(amqp): add publish to log queue
floriaaan May 10, 2023
2fbb998
feat(methods): add methods to proto, handlers, reflection
floriaaan May 10, 2023
d7b4a57
doc: add methods to readme
floriaaan May 10, 2023
e2b3129
feat(reporting): add restaurant_id to proto/schema, add affluence han…
floriaaan Jul 6, 2023
3197d71
ref(db-engine): switch from mongo to postgres
floriaaan Jul 6, 2023
2061296
feat(reporting): add top5-selling handler
floriaaan Jul 6, 2023
1e7904a
feat(reporting): add implementation for top5 selling handler
floriaaan Jul 6, 2023
c110761
ref(date): split function and write tests
floriaaan Jul 6, 2023
810b25d
fix(create/update): relay on basket.string to generate json and total
floriaaan Jul 6, 2023
ea44bc2
feat(reporting): add delivery type handler
floriaaan Jul 6, 2023
85da2a0
fix(ci): update pnpm from '7' to latest
floriaaan Jul 6, 2023
4460ccd
fix(test): add missing properties
floriaaan Jul 6, 2023
902e98b
doc: add markdwon files
floriaaan Jul 6, 2023
0389757
git: rebase dev into stock
floriaaan Jul 6, 2023
d4cc04c
feat(init): init service code and add proto/type/schema definitions
floriaaan Jul 7, 2023
ea5a279
feat(user service): fix update user route
Anatole-Godard Jul 7, 2023
e04753f
feat(user service): fix delete user route
Anatole-Godard Jul 7, 2023
ded6edb
Merge remote-tracking branch 'origin/dev' into feat/add-users-service
Anatole-Godard Jul 7, 2023
88d82f1
feat(token service): check if the userId in the token exist
Anatole-Godard Jul 7, 2023
d30d4b4
Revert "feat(token service): check if the userId in the token exist"
Anatole-Godard Jul 7, 2023
b72b225
feat(schema): add migration, change prisma schema and proto
floriaaan Jul 7, 2023
dad7c22
feat(reporting): add outcome handler
floriaaan Jul 7, 2023
9977cca
feat(ingredient): add ingredient handler
floriaaan Jul 7, 2023
1a0bb9a
feat(ingredient_restaurant): add ingredient_restaurant handlers
floriaaan Jul 7, 2023
9bfb459
feat(supplier): add supplier handlers
floriaaan Jul 7, 2023
d680666
feat(supply_order): add supply_order handlers
floriaaan Jul 7, 2023
7fa7ae5
feat(handlers): add handlers
floriaaan Jul 7, 2023
e32b0fd
fix(ci): fix publish step
floriaaan Jul 7, 2023
e030768
fix(ci): add stock ci/cd
floriaaan Jul 7, 2023
1c3d473
fix(ci): remove lib
floriaaan Jul 7, 2023
0e89dad
feat(user service): fix validate user route
Anatole-Godard Jul 7, 2023
34a15a2
feat(user service): fix change password user route
Anatole-Godard Jul 7, 2023
8f07a02
feat(main address service): fix get main address route
Anatole-Godard Jul 7, 2023
1ce9d6c
Update readme, terraform et k8s
PierreLbg Jul 7, 2023
749ba5f
fix(ci): update ci to match order ci workflow
floriaaan Jul 8, 2023
3c6cb24
feat: init delivery microservice (typescript, prisma, grpc)
floriaaan Mar 27, 2023
93ba406
fix(server): forgot to start server explicitly
floriaaan Mar 29, 2023
c4f42ba
fix(readme): add port binding to docker postgres usage
floriaaan Mar 29, 2023
af4bdc4
feat(pkg): add nodemon watcher script
floriaaan Mar 29, 2023
b864045
ref: change estimated_date to eta
floriaaan Mar 29, 2023
c6f2491
feat(handler): add create-delivery handler
floriaaan Mar 29, 2023
23f3b2a
feat(delivery): add implementation of handlers for delivery service
floriaaan Mar 31, 2023
e353f93
ref(proto): change stream to repeated
floriaaan Apr 1, 2023
f9bedf0
ci: add test/coverage scripts and update README
floriaaan Apr 4, 2023
264b850
build(docker): add Dockerfile
floriaaan Apr 4, 2023
ecaa52a
fix(ci): fix dependencies lock file is not found
floriaaan Apr 4, 2023
12f04be
feat(handlers): add delivery-person handlers
floriaaan Apr 8, 2023
56e69fb
feat(tf): add terraform files
floriaaan Apr 10, 2023
129f55d
feat(k8s): add k8s files
floriaaan Apr 10, 2023
657c277
ci: add tests (but test script is disabeld)
floriaaan Apr 10, 2023
62d129f
fix(docker): fix the Dockerfile build
Anatole-Godard Apr 17, 2023
5a8376d
fix(docker): precise the .env in the comment that run the image
Anatole-Godard Apr 17, 2023
278da0f
fix(proto): remove the symbolic link to /services/proto/
Anatole-Godard Apr 17, 2023
2404f74
fix(types): fix type errors
Anatole-Godard Apr 17, 2023
f220ba9
fix(k8s): fix deployment
Anatole-Godard Apr 18, 2023
f19becc
feat(terraform): update general terraform
Anatole-Godard Apr 19, 2023
65a36bf
ref: change publish job
floriaaan Apr 19, 2023
b58c404
ref(ci): change actions/checkout@v2 -> actions/checkout@master
floriaaan Apr 19, 2023
80250fa
feat(infra): update general terraform and change the delivery image
Anatole-Godard Apr 19, 2023
49e63f4
feat(github action): update delivery CICD
Anatole-Godard Apr 19, 2023
7e08a54
feat(github): update the CICD
Anatole-Godard Apr 20, 2023
2ccd34a
feat(github): add permission
Anatole-Godard Apr 20, 2023
ab5e599
feat(github): update permission
Anatole-Godard Apr 20, 2023
c719b2a
feat(github): add environment
Anatole-Godard Apr 20, 2023
742b7ea
feat(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
1df7fb5
refactor(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
6956562
feat(github): update general terraform
Anatole-Godard Apr 20, 2023
4416267
git(ignore): remove root lockfile and add ignore files
floriaaan May 10, 2023
18e64f5
feat: init delivery microservice (typescript, prisma, grpc)
floriaaan Mar 27, 2023
aa5f945
fix(server): forgot to start server explicitly
floriaaan Mar 29, 2023
66973b7
fix(readme): add port binding to docker postgres usage
floriaaan Mar 29, 2023
c277a9f
feat(pkg): add nodemon watcher script
floriaaan Mar 29, 2023
638b7b2
ref: change estimated_date to eta
floriaaan Mar 29, 2023
11ae3a2
feat(handler): add create-delivery handler
floriaaan Mar 29, 2023
2107a2f
feat(delivery): add implementation of handlers for delivery service
floriaaan Mar 31, 2023
e9a850c
ref(proto): change stream to repeated
floriaaan Apr 1, 2023
b3748a6
ci: add test/coverage scripts and update README
floriaaan Apr 4, 2023
8e361e5
build(docker): add Dockerfile
floriaaan Apr 4, 2023
8b1ea20
fix(ci): fix dependencies lock file is not found
floriaaan Apr 4, 2023
899b32a
feat(handlers): add delivery-person handlers
floriaaan Apr 8, 2023
aa59304
feat(tf): add terraform files
floriaaan Apr 10, 2023
a519d87
feat(k8s): add k8s files
floriaaan Apr 10, 2023
b0bfdf9
ci: add tests (but test script is disabeld)
floriaaan Apr 10, 2023
9985499
fix(docker): fix the Dockerfile build
Anatole-Godard Apr 17, 2023
70b554a
fix(docker): precise the .env in the comment that run the image
Anatole-Godard Apr 17, 2023
9ae09dc
fix(proto): remove the symbolic link to /services/proto/
Anatole-Godard Apr 17, 2023
81b8042
fix(types): fix type errors
Anatole-Godard Apr 17, 2023
caf5e58
fix(k8s): fix deployment
Anatole-Godard Apr 18, 2023
dcd9d7b
feat(terraform): update general terraform
Anatole-Godard Apr 19, 2023
9196008
ref: change publish job
floriaaan Apr 19, 2023
efac3ef
ref(ci): change actions/checkout@v2 -> actions/checkout@master
floriaaan Apr 19, 2023
64650c8
feat(infra): update general terraform and change the delivery image
Anatole-Godard Apr 19, 2023
552a88b
feat(github action): update delivery CICD
Anatole-Godard Apr 19, 2023
715f623
feat(github): update the CICD
Anatole-Godard Apr 20, 2023
de55fe2
feat(github): add permission
Anatole-Godard Apr 20, 2023
5072339
feat(github): update permission
Anatole-Godard Apr 20, 2023
3a4dafa
feat(github): add environment
Anatole-Godard Apr 20, 2023
8457143
feat(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
c75118a
refactor(github): split the delivery deployment
Anatole-Godard Apr 20, 2023
efae917
feat(github): update general terraform
Anatole-Godard Apr 20, 2023
a80ec68
git(ignore): remove root lockfile and add ignore files
floriaaan May 10, 2023
d70d41c
fix(prisma): add "native" to targets
floriaaan May 10, 2023
4525245
fix(proto): add proto symlink
floriaaan May 10, 2023
9478e9b
feat(amqp): add amqp log publisher
floriaaan May 10, 2023
4f262f0
feat(proxy): add serverproxy
floriaaan May 10, 2023
3edfacc
ref(proxy): remove log in handlers
floriaaan May 10, 2023
1a98bbb
test: remove tests
floriaaan May 12, 2023
70787e2
fix(ci): update ci to match order ci workflow
floriaaan Jul 8, 2023
e41b04d
ref(prisma): update prisma, fix seed
floriaaan Jul 8, 2023
92f7b29
Merge branch 'delivery' of https://github.com/floriaaan/goodfood into…
floriaaan Jul 8, 2023
6ea5978
ref(log): change path in log amqp publish
floriaaan Jul 8, 2023
a604943
fix(proto): fix typo in proto
floriaaan Jul 9, 2023
a4ec96a
feat(redis): add redis caching system
floriaaan Jul 9, 2023
0d71104
fix(ci): remove library
floriaaan Jul 9, 2023
480855a
fix(ci): remove library
floriaaan Jul 9, 2023
8aa1168
Merge branch 'delivery' of https://github.com/floriaaan/goodfood into…
floriaaan Jul 9, 2023
c9c76bd
fix(ci): remove lib in order service
floriaaan Jul 9, 2023
20f3ad0
feat(user service): add dockerFile and remove src directory
Anatole-Godard Jul 9, 2023
69c958a
Merge branch 'dev' into log
floriaaan Jul 15, 2023
34123cc
Merge pull request #7 from floriaaan/delivery
floriaaan Jul 15, 2023
9861f3f
Merge branch 'dev' into log
floriaaan Jul 15, 2023
4473349
Merge pull request #6 from floriaaan/log
floriaaan Jul 15, 2023
5181164
Modify readme and try to deploy on azure
PierreLbg Jul 18, 2023
fcf289a
Add github work flow
PierreLbg Jul 18, 2023
3a529d3
Update lock file
PierreLbg Jul 18, 2023
96e66ee
feat: add .nvmrc file
PierreLbg Jul 18, 2023
77fcb1a
fix:update pnpm lock
PierreLbg Jul 18, 2023
77f0323
Init promotion
PierreLbg Jul 20, 2023
af68926
Update container port
PierreLbg Jul 21, 2023
27621f5
Update readme
PierreLbg Jul 21, 2023
dd5454c
Update .env.example
PierreLbg Jul 21, 2023
eb4b7b9
Add functionnalities
PierreLbg Jul 21, 2023
e59ead2
Merge pull request #9 from floriaaan/product-service
PierreLbg Jul 21, 2023
59aa896
Add docker file
PierreLbg Jul 21, 2023
47f657d
Add CI/CD
PierreLbg Jul 25, 2023
5388483
Merge pull request #11 from floriaaan/promotions
PierreLbg Aug 2, 2023
d81a900
git: ignore expo cache files
floriaaan Aug 4, 2023
e14c476
Merge branch 'dev' into stock
floriaaan Aug 7, 2023
3415ce6
Merge pull request #4 from floriaaan/reporting
floriaaan Aug 7, 2023
b582c33
Merge pull request #5 from floriaaan/stock
floriaaan Aug 7, 2023
220a60f
Update README.md
floriaaan Aug 7, 2023
aad97a0
feat(basket): create the basket service
Anatole-Godard Aug 13, 2023
09d2eb8
feat(service): create the basket proto
Anatole-Godard Aug 13, 2023
128de4b
feat(basket): add proto folder link
Anatole-Godard Aug 13, 2023
d9fc75c
feat(proto): update the basket proto
Anatole-Godard Aug 14, 2023
9446d29
feat(basket): create the add product and get basket methods
Anatole-Godard Aug 14, 2023
1152410
feat(basket): create the delete product method
Anatole-Godard Aug 14, 2023
c4e3777
feat(basket): create the reset basket method
Anatole-Godard Aug 14, 2023
949e297
feat(basket): remove useless variable
Anatole-Godard Aug 14, 2023
e81046f
feat(basket): add updateRestaurant method and throw Invalid request i…
Anatole-Godard Aug 14, 2023
c3d11fd
feat(basket): clean
Anatole-Godard Aug 14, 2023
6bd1e01
feat(global): update the readme
Anatole-Godard Aug 15, 2023
c4c2e9d
Update services/basket/k8s/configmap.yml
Anatole-Godard Aug 15, 2023
222d744
Update services/basket/k8s/deployment.yml
Anatole-Godard Aug 15, 2023
57af2db
Update services/basket/k8s/ingress.yml
Anatole-Godard Aug 15, 2023
ef382de
Update services/basket/src/server.ts
Anatole-Godard Aug 15, 2023
026b4f7
Update services/basket/src/server.ts
Anatole-Godard Aug 15, 2023
e7e3948
Merge pull request #13 from floriaaan/basket
Anatole-Godard Aug 16, 2023
91b35fb
Merge pull request #8 from floriaaan/feat/add-users-service
Anatole-Godard Aug 16, 2023
514e0e9
init prisma
PierreLbg Aug 19, 2023
7b6c6c6
Merge branch 'dev' of github.com:floriaaan/goodfood into notification
PierreLbg Aug 19, 2023
387d1d9
Livraison final
PierreLbg Aug 19, 2023
7f902f4
Final version
PierreLbg Aug 20, 2023
1d77c4a
switch to pnpm.lock
PierreLbg Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .github/workflows/delivery-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Delivery Microservice CI/CD

on:
push:
branches: [ dev, main ]

permissions:
id-token: write
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
environment: dev
needs: [ build, test, publish ]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Install kubectl
run: |
sudo snap install kubectl --classic
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.5
- name: Terraform init
run: |
cd ./terraform &&
terraform init
- name: Terraform apply
run: |
cd ./terraform &&
terraform apply -auto-approve
- name: Terraform apply delivery
run: |
cd ../services/delivery/terraform &&
terraform apply -auto-approve
- name: Configure kubectl
run: |
az aks get-credentials --resource-group rg-goodfood-dev --name aks-goodfood-dev
- name: apply k8s manifests
run: |
cd .. &&
kubectl create namespace goodfood &&
kubectlcrete kubectl apply -f ./k8s
70 changes: 70 additions & 0 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Delivery Microservice CI/CD

on:
push:
branches: [delivery]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/delivery/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/delivery
pnpm install --frozen-lockfile
- name: Build
run: |
cd ./services/delivery
pnpm build

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/delivery/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/delivery
pnpm install --frozen-lockfile
- name: Execute tests
run: |
cd ./services/delivery
pnpm test

publish:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/delivery/Dockerfile
push: true
tags: floriaaan/goodfood-delivery:latest
15 changes: 10 additions & 5 deletions .github/workflows/tests.yml → .github/workflows/global.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: "Tests"
name: "Tests all microservices"

on:
- push
- pull_request
- workflow_dispatch

push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:

jobs:
tests:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/log.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Log Microservice CI/CD

on:
push:
branches: [log]
pull_request:
branches: [dev, main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.3

- name: Build
run: cd services/log && go build .

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.3

- name: Execute tests
run: cd services/log && go test -v .

publish:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/log/Dockerfile
push: true
tags: floriaaan/goodfood-log:latest
69 changes: 69 additions & 0 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Notification Microservice CI/CD

on:
push:
branches: [ notification ]
pull_request:
branches: [ dev, main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/notification/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/notification
pnpm install --frozen-lockfile
- name: Build
run: |
cd ./services/notification
pnpm build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/notification/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/notification
pnpm install --frozen-lockfile
- name: Execute tests
run: |
cd ./services/notification
pnpm test
publish:
runs-on: ubuntu-latest
needs: [ build, test ]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/notification/Dockerfile
push: true
tags: pierrelbg/goodfood-notification:latest
69 changes: 69 additions & 0 deletions .github/workflows/order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Order Microservice CI/CD

on:
push:
branches: [ order ]
pull_request:
branches: [ dev, main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/order/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/order
pnpm install --frozen-lockfile
- name: Build
run: |
cd ./services/order
pnpm build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/order/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/order
pnpm install --frozen-lockfile
- name: Execute tests
run: |
cd ./services/order
pnpm test

publish:
runs-on: ubuntu-latest
needs: [ build, test ]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/order/Dockerfile
push: true
tags: floriaaan/goodfood-order:latest
Loading
Loading