diff --git a/.github/workflows/application.yml b/.github/workflows/application.yml new file mode 100644 index 00000000..8c8e2c5d --- /dev/null +++ b/.github/workflows/application.yml @@ -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 }} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 42aff0ab..5fc00d6c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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,