Skip to content

Commit

Permalink
fix: combined build and test pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
kpblmMik committed Jul 2, 2024
1 parent 809f4ca commit 92f98be
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 44 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/build-and-push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,49 @@ on:
tags:
- "v*"
jobs:
Unittests-run:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Change directory to test auth
run: cd ./api/auth

- name: Install npm dependencies
run: npm ci
working-directory: ./api/auth

- name: Run Units Tests for auth
run: npm run test -- --coverage
working-directory: ./api/auth/Unit-tests
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}

- name: Change directory to test user
run: cd ./api/user

- name: Install npm dependencies
run: npm ci
working-directory: ./api/user

- name: Run Units Tests for user
run: npm run test -- --coverage
working-directory: ./api/user/Unit-tests

- name: Change directory to test post
run: cd ./api/post

- name: Install npm dependencies
run: npm ci
working-directory: ./api/post

- name: Run Units Tests for post
run: npm run test -- --coverage
working-directory: ./api/post/Unit-tests
build-and-push:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/eks-cluster.yaml

This file was deleted.

0 comments on commit 92f98be

Please sign in to comment.