This commit is contained in:
2024-12-22 21:58:50 +01:00
parent fa7086cd3c
commit 677adc1e22
9 changed files with 12 additions and 100 deletions

View File

@@ -1,4 +1,4 @@
name: Release Auth service to Docker Hub and Deploy to Kubernetes
name: Release Auth service to Docker Hub
on:
push:

View File

@@ -1,21 +0,0 @@
name: Authentication service Continuous Integration
on:
push:
paths:
- "cmd/auth/**"
- "pkg/**"
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
with:
working-directory: 'cmd/auth'
build:
needs: lint
uses: ./.github/workflows/go_build.yml
with:
working-directory: 'cmd/auth'
test:
needs: build
uses: ./.github/workflows/go_test.yml
with:
working-directory: 'cmd/auth'

View File

@@ -1,4 +1,4 @@
name: Release Backend service to Docker Hub and Deploy to Kubernetes
name: Release Backend service to Docker Hub
on:
push:

View File

@@ -1,21 +0,0 @@
name: Backend Continuous Integration
on:
push:
paths:
- "cmd/backend/**"
- "pkg/**"
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
with:
working-directory: 'cmd/backend'
build:
needs: lint
uses: ./.github/workflows/go_build.yml
with:
working-directory: 'cmd/backend'
test:
needs: build
uses: ./.github/workflows/go_test.yml
with:
working-directory: 'cmd/backend'

View File

@@ -1,6 +1,6 @@
name: Frontend Continuous Integration
on:
push:
pull_request:
paths:
- "cmd/frontend/**"
jobs:

View File

@@ -1,27 +0,0 @@
on:
workflow_call:
inputs:
working-directory:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.22.x'
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Display Go version
run: go version
- name: Install dependencies
run: |
go get
- name: Build
run: |
go build ${{ inputs.working-directory }}

View File

@@ -1,9 +1,8 @@
on:
workflow_call:
inputs:
working-directory:
required: true
type: string
pull_request:
paths:
- "cmd/**"
- "pkg/**"
jobs:
golangci:
@@ -13,10 +12,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: ${{ inputs.working-directory }}

View File

@@ -1,15 +0,0 @@
name: Common Package Continuous Integration
on:
push:
paths:
- "pkg/**"
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
with:
working-directory: 'pkg'
test:
needs: lint
uses: ./.github/workflows/go_test.yml
with:
working-directory: 'pkg'

View File

@@ -1,9 +1,8 @@
on:
workflow_call:
inputs:
working-directory:
required: true
type: string
pull_request:
paths:
- "cmd/**"
- "pkg/**"
jobs:
build:
@@ -24,5 +23,4 @@ jobs:
- name: Run tests
run: |
cd ${{ inputs.working-directory }}
go test ./...