From 59b3b31b44aeee7848e3b6748a7bf019d39938e8 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Wed, 28 Feb 2024 13:59:22 +0100 Subject: [PATCH] Create ci for subprojects --- .github/workflows/auth-service-ci.yml | 21 +++++++++++++++++++++ .github/workflows/backend-ci.yml | 21 +++++++++++++++++++++ .github/workflows/cd.yml | 5 ----- .github/workflows/ci.yml | 2 -- .github/workflows/frontend-ci.yml | 16 ++++++++++++++++ 5 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/auth-service-ci.yml create mode 100644 .github/workflows/backend-ci.yml delete mode 100644 .github/workflows/cd.yml delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/frontend-ci.yml diff --git a/.github/workflows/auth-service-ci.yml b/.github/workflows/auth-service-ci.yml new file mode 100644 index 0000000..7593e16 --- /dev/null +++ b/.github/workflows/auth-service-ci.yml @@ -0,0 +1,21 @@ +name: Authentication service Continuous Integration +on: + push: + paths: + - "auth-service/**" + +jobs: + lint: + uses: ./.github/workflows/CI/go_lint.yml + with: + working-directory: 'auth-service' + build: + needs: lint + uses: ./.github/workflows/CI/go_build.yml + with: + working-directory: 'auth-service' + test: + needs: build + uses: ./.github/workflows/CI/go_test.yml + with: + working-directory: 'auth-service' \ No newline at end of file diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml new file mode 100644 index 0000000..10d77f4 --- /dev/null +++ b/.github/workflows/backend-ci.yml @@ -0,0 +1,21 @@ +name: Backend Continuous Integration +on: + push: + paths: + - "backend/**" + +jobs: + lint: + uses: ./.github/workflows/CI/go_lint.yml + with: + working-directory: 'backend' + build: + needs: lint + uses: ./.github/workflows/CI/go_build.yml + with: + working-directory: 'backend' + test: + needs: build + uses: ./.github/workflows/CI/go_test.yml + with: + working-directory: 'backend' \ No newline at end of file diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 73e6015..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,5 +0,0 @@ -name: Continuous Deployment -on: - push: - branches: - - master diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 725c7aa..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,2 +0,0 @@ -name: Continuous Integration -on: push \ No newline at end of file diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..dbb5271 --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,16 @@ +name: Frontend Continuous Integration +on: + push: + paths: + - "frontend/**" + +jobs: + lint: + uses: ./.github/workflows/CI/go_lint.yml + with: + working-directory: 'backend' + build: + needs: lint + uses: ./.github/workflows/CI/go_build.yml + with: + working-directory: 'backend'