Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #59

Merged
merged 75 commits into from
Dec 20, 2024
Merged

Dev #59

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
c2c198e
chat fix done
JolyBI3ll Dec 3, 2024
4b9e6e6
Merge branch '123_tests' into 138_favorites
Qaleka Dec 6, 2024
7482846
start work on payment
Qaleka Dec 6, 2024
590839a
Merge remote-tracking branch 'origin/138_favorites' into 136_WebSocke…
JolyBI3ll Dec 6, 2024
d041ac1
done new ads attributes and fix description length
Qaleka Dec 6, 2024
ec1396e
fix change bool fields
Qaleka Dec 7, 2024
921e0cb
chat sort fix
JolyBI3ll Dec 8, 2024
a221292
chat limit fix
JolyBI3ll Dec 8, 2024
8a8f7dc
Merge branch '148_Ads_New_Attributes' into 143_Payment
Qaleka Dec 9, 2024
88ba041
timeout and empty messages fix for chat
JolyBI3ll Dec 9, 2024
91794e8
done payment
Qaleka Dec 9, 2024
497a2de
Merge remote-tracking branch 'origin/136_WebSocket_fics' into dev
Qaleka Dec 9, 2024
d4cbbea
new id path
Qaleka Dec 10, 2024
820ce75
easyJson start development
JolyBI3ll Dec 14, 2024
a6814ac
easyJson start development
JolyBI3ll Dec 14, 2024
d03c965
fix X-CSFR-Token validation in GetUserFavorites
JolyBI3ll Dec 14, 2024
c2a981b
update secure
Qaleka Dec 14, 2024
05e54b2
Merge branch '124_rebuild_metrics' into dev
Qaleka Dec 14, 2024
bbfdafd
http only
Qaleka Dec 14, 2024
e041095
done: is favorite
Qaleka Dec 14, 2024
9880e79
Merge pull request #57 from go-park-mail-ru/152_favorite_attribute
Qaleka Dec 14, 2024
770edd7
fix favorite
Qaleka Dec 14, 2024
fa8fd8b
Merge branch 'dev' into 149_easyJson
JolyBI3ll Dec 14, 2024
03fa1c9
Auth microservice easyjson integrate Done!
JolyBI3ll Dec 14, 2024
83b532b
change path to mocks
Qaleka Dec 14, 2024
7fa6bfa
fix: add priotiry to getAllPlaces
Qaleka Dec 15, 2024
c017466
EasyJson done!
JolyBI3ll Dec 15, 2024
3e234d0
feat: supercharge deploy (#58)
rasulov1337 Dec 15, 2024
e2852e0
Merge conflict resolved!
JolyBI3ll Dec 15, 2024
29fa1be
fix: nil err to metrics
Qaleka Dec 15, 2024
15eb897
add panic recovery
Qaleka Dec 15, 2024
5b9decd
deploy on 'dev' push
rasulov1337 Dec 15, 2024
5698cd7
fix: update path to .env for migrator
rasulov1337 Dec 15, 2024
f35b816
fix nil pointer after response
Qaleka Dec 16, 2024
8d53334
fix: make csrf_token accessible from javascript
rasulov1337 Dec 16, 2024
d3e8973
fix: make csrf_token accessible from js
rasulov1337 Dec 16, 2024
faaec5b
fix order
Qaleka Dec 16, 2024
b923f52
fix author rating num
Qaleka Dec 16, 2024
bec1089
return new errors
Qaleka Dec 16, 2024
8604339
remove controller test and do some linter errors
Qaleka Dec 16, 2024
8d3c3c7
fix all linter mistakes
Qaleka Dec 16, 2024
768354f
all test works now
Qaleka Dec 16, 2024
7403b95
add linter and test to workflow
Qaleka Dec 16, 2024
f202888
test
Qaleka Dec 16, 2024
cd15cb7
again...
Qaleka Dec 16, 2024
44e32ca
and again...
Qaleka Dec 16, 2024
7eff2e5
and again/
Qaleka Dec 16, 2024
b100153
another try
Qaleka Dec 16, 2024
86a3130
anekdot:
Qaleka Dec 16, 2024
91c463d
god help me
Qaleka Dec 16, 2024
6da429f
let go tests
Qaleka Dec 16, 2024
c09c789
gazu
Qaleka Dec 16, 2024
fc1f899
chat fix
Qaleka Dec 17, 2024
a07e302
Response sent added
JolyBI3ll Dec 17, 2024
6d1b47a
start test controller
Qaleka Dec 17, 2024
a2c32a8
converto to interface
Qaleka Dec 17, 2024
f68dbe9
test pipidodo
JolyBI3ll Dec 17, 2024
3d3d9c3
fix: update order of containers start up
rasulov1337 Dec 17, 2024
9f712b8
test auth done
JolyBI3ll Dec 18, 2024
142115a
ads controller tests 46%
Qaleka Dec 18, 2024
3edd823
test auth done
JolyBI3ll Dec 18, 2024
ad78f2f
revies controller and usecase tests
Qaleka Dec 18, 2024
062a39c
add some checks
Qaleka Dec 18, 2024
1022273
change github action
Qaleka Dec 18, 2024
91dcaaa
final?
Qaleka Dec 18, 2024
45e6341
fix: change port from 3000 to 8060 for grafana
rasulov1337 Dec 18, 2024
40abbe8
sent format chat resolved
JolyBI3ll Dec 18, 2024
0a1287d
Merge remote-tracking branch 'origin/dev' into dev
JolyBI3ll Dec 18, 2024
a079cf1
add regions
Qaleka Dec 19, 2024
d2740a1
nah linter
JolyBI3ll Dec 20, 2024
26c9184
deploy resolved
JolyBI3ll Dec 20, 2024
042191a
another resolve
JolyBI3ll Dec 20, 2024
9c80762
404 resolve
JolyBI3ll Dec 20, 2024
ec83dd1
update cities description
Qaleka Dec 20, 2024
41461d5
Merge branch 'main' into dev
Qaleka Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Build, Test, and Push Services

on:
push:
branches:
- dev

jobs:

lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: golangci-lint run ./...

build-test-and-push:
runs-on: ubuntu-latest
needs:
- lint
steps:
# 1. Checkout repository
- name: Checkout code
uses: actions/checkout@v4

# 2. Set up Go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'

# 3. Install dependencies
- name: Install Go dependencies
run: |
go mod tidy
go get ./...
go mod vendor

# 4. Run tests
- name: Run Go tests
run: |
go test -coverpkg=./... -coverprofile=cover ./... && cat cover | grep -v "mock" | grep -v "easyjson" | grep -v "proto" | grep -v "pb" | grep -v "grpc" > cover.out && go tool cover -func=cover.out

# 5. Login to DockerHub
- name: Login to DockerHub Registry
run: echo ${{secrets.DOCKERHUB_TOKEN}} | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin

# 6. Build ads_service
- name: Build and push ads_service
uses: docker/build-push-action@v4
with:
context: .
file: ./microservices/ads_service/Dockerfile
tags: ${{secrets.DOCKERHUB_USERNAME}}/ads_service:latest
push: true

# 7. Build auth_service
- name: Build and push auth_service
uses: docker/build-push-action@v4
with:
context: .
file: ./microservices/auth_service/Dockerfile
tags: ${{secrets.DOCKERHUB_USERNAME}}/auth_service:latest
push: true

# 8. Build city_service
- name: Build and push city_service
uses: docker/build-push-action@v4
with:
context: .
file: ./microservices/city_service/Dockerfile
tags: ${{secrets.DOCKERHUB_USERNAME}}/city_service:latest
push: true

# 9. Build migrator
- name: Build and push migrator
uses: docker/build-push-action@v4
with:
context: .
file: ./cmd/migrator/Dockerfile
tags: ${{secrets.DOCKERHUB_USERNAME}}/migrator:latest
push: true

# 10. Build backend (main service)
- name: Build and push backend
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
tags: ${{secrets.DOCKERHUB_USERNAME}}/backend:latest
push: true

Loading
Loading