Skip to content

Commit

Permalink
Create PR check pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
miroljub1995 authored Oct 29, 2024
1 parent d900099 commit 859c8b4
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: PR Checks

on:
pull_request:
branches:
- dev
workflow_dispatch:

jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend

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

- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Build project
run: dotnet build

frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

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

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Install dependencies
run: npm ci

- name: Type check
run: npm run type-check

- name: Lint
run: npm run lint

0 comments on commit 859c8b4

Please sign in to comment.