Skip to content

Commit

Permalink
Added GitHub Actions for linting
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Balitzki <[email protected]>
  • Loading branch information
Corgam committed May 6, 2024
1 parent bd5014b commit bf25a68
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backend - Tests
name: Backend - CI

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:

jobs:
build:
name: Build the Docker Image
name: Build Images
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build Image
- name: Build Images
run: docker compose build --pull
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Deploy Production Service
name: Deploy - Production Env.

on:
push:
branches:
- main

jobs:
publish:
name: Publish Docker Image
PublishImages:
name: Publish Docker Images
runs-on: ubuntu-latest

steps:
Expand All @@ -22,9 +22,9 @@ jobs:
- name: Logout
run: docker logout

deploy:
needs: publish
name: Deploy Image on the Server
DeployProductionEnv:
needs: PublishImages
name: Deploy Image in the Production Environment
runs-on: ubuntu-latest

steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Deploy Test Service
name: Deploy - Test Env.

on:
push:
branches:
- sprint-release

jobs:
publish:
PublishImages:
name: Publish Docker Image
runs-on: ubuntu-latest

Expand All @@ -22,9 +22,9 @@ jobs:
- name: Logout
run: docker logout

deploy:
needs: publish
name: Deploy Image on the Server
DeployTestEnv:
needs: PublishImages
name: Deploy Image in the Test Environment
runs-on: ubuntu-latest

steps:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/frontend-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Frontend - CI

on:
pull_request:
branches:
- sprint-release
- main
paths:
- "frontend/**"

jobs:
RunChecks:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Setup frontend
run: npm ci
working-directory: frontend

- name: Run linting checks
run: npm run lint
working-directory: frontend
27 changes: 0 additions & 27 deletions .github/workflows/frontend-tests.yml

This file was deleted.

0 comments on commit bf25a68

Please sign in to comment.