-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |