File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main, master]
6+ pull_request :
7+ branches : [main, master]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ' 18'
20+
21+ - name : Install pnpm
22+ uses : pnpm/action-setup@v2
23+ with :
24+ version : 8
25+ run_install : false
26+
27+ - name : Get pnpm store directory
28+ shell : bash
29+ run : |
30+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31+
32+ - uses : actions/cache@v3
33+ name : Setup pnpm cache
34+ with :
35+ path : ${{ env.STORE_PATH }}
36+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+ restore-keys : |
38+ ${{ runner.os }}-pnpm-store-
39+
40+ - name : Install dependencies
41+ run : pnpm install
42+
43+ - name : Check code formatting
44+ run : pnpm run lint
45+
46+ - name : Type check
47+ run : pnpm run check
48+
49+ - name : Build
50+ run : pnpm run build
Original file line number Diff line number Diff line change @@ -84,6 +84,16 @@ You can preview the production build with:
8484pnpm preview
8585```
8686
87+ ## Continuous Integration
88+
89+ This project uses GitHub Actions for continuous integration. The workflow automatically runs on push to main/master branches and on pull requests:
90+
91+ - Linting with Prettier to ensure code formatting standards
92+ - Type checking with Svelte Check
93+ - Building the project to catch any build errors
94+
95+ You can view the workflow configuration in ` .github/workflows/ci.yml ` .
96+
8797## Project Structure
8898
8999- ` src/routes ` : Page components and routes
You can’t perform that action at this time.
0 commit comments