56
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled

This commit is contained in:
Alex Shevchuk
2025-08-20 22:58:44 +03:00
parent 117952d6d5
commit 6f014abe4b

View File

@@ -11,56 +11,56 @@ on:
- release - release
jobs: jobs:
lint: # lint:
name: Run golangci-lint # name: Run golangci-lint
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
strategy: # strategy:
matrix: # matrix:
project: # project:
- api_gateway # - api_gateway
steps: # steps:
- name: Checkout repository # - name: Checkout repository
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v4 # uses: actions/setup-go@v4
with: # with:
go-version: 1.23 # go-version: 1.23
- name: Install golangci-lint # - name: Install golangci-lint
run: | # run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2 # curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
- name: Run golangci-lint # - name: Run golangci-lint
run: | # run: |
go mod tidy # go mod tidy
golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always # golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
build: # build:
name: Build golang services # name: Build golang services
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
needs: lint # needs: lint
strategy: # strategy:
matrix: # matrix:
project: # project:
- api_gateway # - api_gateway
steps: # steps:
- name: Checkout repository # - name: Checkout repository
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v4 # uses: actions/setup-go@v4
with: # with:
go-version: 1.23 # go-version: 1.23
- name: Build golang services # - name: Build golang services
run: | # run: |
go mod tidy # go mod tidy
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go # CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
push: push:
name: Push Docker Images name: Push Docker Images