Skip to content

Commit aa5576c

Browse files
committed
Dodano migrację tabeli zadań i przepływ pracy GitHub Actions
- Utworzono migrację tabeli zadań ze wszystkimi wymaganymi polami - Dodano zasady RLS dla zadań (użytkownicy widzą własne zadania, administratorzy widzą wszystkie) - Zaktualizowano typy TypeScript, dodając status Nie rozpoczęto - Dodano przepływ pracy GitHub Actions CI/CD dla lintowania, testowania i kompilacji
1 parent b22dab6 commit aa5576c

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
branches: [ main, master, develop ]
6+
pull_request:
7+
branches: [ main, master, develop ]
8+
9+
jobs:
10+
lint-and-test:
11+
name: Lint and Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run linter
28+
run: npm run lint
29+
30+
- name: Run tests
31+
run: npm run test -- --run
32+
33+
build:
34+
name: Build
35+
runs-on: ubuntu-latest
36+
needs: lint-and-test
37+
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: '20'
46+
cache: 'npm'
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Build project
52+
run: npm run build
53+
54+
- name: Upload build artifacts
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: build-files
58+
path: dist/
59+
retention-days: 7

0 commit comments

Comments
 (0)