Skip to content

Commit

Permalink
Feature/add tests (#7)
Browse files Browse the repository at this point in the history
* add unit tests and testing dependencies

* test - Add tests for ProjectGrid component functionality and styles

* feat - add vitest/coverage-v8 for test coverage support

* test - add unit tests for App component functionality

* test - add new unit tests for the App component

* feat - add testing configuration for Vite setup

* feat - added new testing steps to build workflow

* feat - add installation command update for dependencies

* feat - added new tests and updated build configuration
  • Loading branch information
guibranco authored Nov 22, 2024
1 parent 4d238b6 commit 36afb74
Show file tree
Hide file tree
Showing 3 changed files with 744 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@ name: Build and Test on Pull Request

on:
pull_request:
branches:
- '**' # Triggers on pull requests to any branch
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
build:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
node-version: 20.x

- name: Install Dependencies
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run Tests
- name: Test
run: npm test
Loading

0 comments on commit 36afb74

Please sign in to comment.