From 859c8b49c2b935a3abf58f77d17b006513d6dc94 Mon Sep 17 00:00:00 2001 From: Miroljub <46632388+miroljub1995@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:57:57 +0100 Subject: [PATCH] Create PR check pipeline --- .github/workflows/pr.yaml | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..1bbfe97 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -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