Skip to content

Bump vite from 5.3.2 to 5.4.5 #141

Bump vite from 5.3.2 to 5.4.5

Bump vite from 5.3.2 to 5.4.5 #141

name: Build, Test and Deploy React App
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
# - name: Upload artifact to enable deployment
# uses: actions/upload-artifact@v3
# with:
# name: production-files
# path: ./dist
test:
runs-on: ubuntu-latest
needs: build
if: github.actor != 'dependabot[bot]'
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run test --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true