Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoval committed Feb 7, 2025
1 parent 1556aaf commit d9618bc
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Description

Briefly describe the changes made in this Pull Request.

## Additional context (optional)

Add any additional context or information about the changes made in this PR.

## How to test

Provide clear and concise instructions on how to test the changes made in this PR.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test 🏗️

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, firefox, edge]
steps:
- name: Checkout code 📥
uses: actions/checkout@v4

- name: Set up Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: yarn.lock

- name: Install dependencies 📦
run: |
HUSKY=0 yarn install --prefer-offline --frozen-lockfile
- name: Lint code 🎨
run: |
yarn lint
- name: Build project 🏗️
run: |
yarn build
- name: Get number of CPU cores 💻
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2

- name: Run Unit tests 🧪
run: |
yarn coverage --max-workers ${{ steps.cpu-cores.outputs.count }}
- name: Upload coverage to Codecov 📊
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d9618bc

Please sign in to comment.