57
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Failing after 4m59s
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Failing after 4m59s
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
This commit is contained in:
@@ -11,61 +11,61 @@ on:
|
||||
- release
|
||||
|
||||
jobs:
|
||||
# lint:
|
||||
# name: Run golangci-lint
|
||||
# runs-on: ubuntu-22.04
|
||||
lint:
|
||||
name: Run golangci-lint
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
# strategy:
|
||||
# matrix:
|
||||
# project:
|
||||
# - api_gateway
|
||||
strategy:
|
||||
matrix:
|
||||
project:
|
||||
- api_gateway
|
||||
|
||||
# steps:
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v3
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@v4
|
||||
# with:
|
||||
# go-version: 1.23
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.23
|
||||
|
||||
# - name: Install golangci-lint
|
||||
# run: |
|
||||
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
|
||||
- name: Install golangci-lint
|
||||
run: |
|
||||
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
|
||||
# run: |
|
||||
# go mod tidy
|
||||
# golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
|
||||
- name: Run golangci-lint
|
||||
run: |
|
||||
go mod tidy
|
||||
golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
|
||||
|
||||
# build:
|
||||
# name: Build golang services
|
||||
# runs-on: ubuntu-22.04
|
||||
# needs: lint
|
||||
build:
|
||||
name: Build golang services
|
||||
runs-on: ubuntu-22.04
|
||||
needs: lint
|
||||
|
||||
# strategy:
|
||||
# matrix:
|
||||
# project:
|
||||
# - api_gateway
|
||||
strategy:
|
||||
matrix:
|
||||
project:
|
||||
- api_gateway
|
||||
|
||||
# steps:
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v3
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@v4
|
||||
# with:
|
||||
# go-version: 1.23
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.23
|
||||
|
||||
# - name: Build golang services
|
||||
# run: |
|
||||
# go mod tidy
|
||||
# CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
|
||||
- name: Build golang services
|
||||
run: |
|
||||
go mod tidy
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
|
||||
|
||||
push:
|
||||
name: Push Docker Images
|
||||
runs-on: ubuntu-22.04
|
||||
# needs: lint
|
||||
needs: lint
|
||||
if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
|
||||
|
||||
strategy:
|
||||
|
Reference in New Issue
Block a user