Skip to content

Commit 5034b22

Browse files
committed
add ci/cd
1 parent 6f5728e commit 5034b22

3 files changed

Lines changed: 37 additions & 6 deletions

File tree

.cursor/rules/github-actions.mdc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
alwaysApply: false
3+
---
4+
5+
## Github Action Rules
6+
7+
### Version Verification
8+
9+
1. Identify public actions used within the workflow
10+
2. For each action always check what is the most up-to-date version with the following command:
11+
12+
```bash
13+
curl -s https://api.github.com/repos/{owner}/{repo}/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([0-9]+).*/\1/'
14+
```
15+
16+
### Setup Node
17+
18+
Always check the version of `.nvmrc` in the project to make sure Node is correct (hardcoded LTS or version from file - if it exists).

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test and build main
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["**"]
7+
8+
jobs:
9+
checks:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: 22.15.0
16+
cache: "npm"
17+
- run: npm install
18+
- run: npm run test:run
19+
- run: npm run build

ai/tech-stack.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ This document describes the key technologies used in the Pathly project to ensur
1717
- **Authentication**: A built-in system for user management (registration, login) based on email and password.
1818
- **Auto-generated API**: Automatically provides an API for interacting with the database, which significantly speeds up the development of CRUD operations.
1919

20-
<<<<<<< HEAD
2120
## Testing
2221

2322
### Unit & Integration Tests
@@ -42,12 +41,7 @@ This document describes the key technologies used in the Pathly project to ensur
4241
- **Codecov**: A code coverage reporting tool that tracks test coverage across the codebase.
4342
- **Supabase CLI**: Used for local Supabase instance management, enabling automated database resets and migration testing with `supabase db reset`.
4443

45-
## CI/CD and Hosting (do skonfigurowania później)
46-
47-
- **GitHub Actions**: A tool for continuous integration (CI). Will be used to automatically run tasks (tests, linting, type checking) with every pull request to ensure code quality.
48-
=======
4944
## CI/CD and Hosting
5045

5146
- **GitHub Actions**: A tool for continuous integration (CI). Used to automatically run tasks (tests, linting, type checking) with every pull request to ensure code quality.
52-
>>>>>>> main
5347
- **Vercel**: A platform for hosting and continuous deployment (CD), optimized for Next.js. It provides automatic production deployments and preview environments for each pull request.

0 commit comments

Comments
 (0)