mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
fixup ci
This commit is contained in:
2
.github/workflows/auth-service-cd.yml
vendored
2
.github/workflows/auth-service-cd.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Release Auth service to Docker Hub and Deploy to Kubernetes
|
||||
name: Release Auth service to Docker Hub
|
||||
|
||||
on:
|
||||
push:
|
||||
|
21
.github/workflows/auth-service-ci.yml
vendored
21
.github/workflows/auth-service-ci.yml
vendored
@@ -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'
|
2
.github/workflows/backend-cd.yml
vendored
2
.github/workflows/backend-cd.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Release Backend service to Docker Hub and Deploy to Kubernetes
|
||||
name: Release Backend service to Docker Hub
|
||||
|
||||
on:
|
||||
push:
|
||||
|
21
.github/workflows/backend-ci.yml
vendored
21
.github/workflows/backend-ci.yml
vendored
@@ -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'
|
2
.github/workflows/frontend-ci.yml
vendored
2
.github/workflows/frontend-ci.yml
vendored
@@ -1,6 +1,6 @@
|
||||
name: Frontend Continuous Integration
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
paths:
|
||||
- "cmd/frontend/**"
|
||||
jobs:
|
||||
|
27
.github/workflows/go_build.yml
vendored
27
.github/workflows/go_build.yml
vendored
@@ -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 }}
|
@@ -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 }}
|
15
.github/workflows/pkg-ci.yml
vendored
15
.github/workflows/pkg-ci.yml
vendored
@@ -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'
|
@@ -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 ./...
|
Reference in New Issue
Block a user