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 c773aff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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: 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 c773aff

Please sign in to comment.