Skip to content

Commit

Permalink
set up Ci (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyShimwa authored Jun 6, 2024
1 parent 2f74015 commit caf0955
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI for ecomm-project for Dynamite

on:
push:
branches: ['develop']
pull_request:
branches: ['develop']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test --if-present
- run: npm run build --if-present
- run: npm run test:ci --if-present
- run: npm run lint --if-present
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server:{
server: {
host: true,
strictPort: true,
port: 8080
port: 8080,
},
test: {
globals: true,
Expand Down

0 comments on commit caf0955

Please sign in to comment.