Skip to content

Commit

Permalink
fix:add ci for check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblanc committed Oct 9, 2024
1 parent ef733ca commit 0e512f4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: TypeScript check
run: npm run typecheck

- name: Run tests
run: npm test

- name: Build with Vite
run: npm run build
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dev": "vite",
"build": "tsc && vite build && shx cp .htaccess /var/www/bas/site/public/",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview --port 8080"
"preview": "vite preview --port 8080",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@emailjs/browser": "^4.1.0",
Expand Down

0 comments on commit 0e512f4

Please sign in to comment.