Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions .eslintrc

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main

jobs:
test:
name: Test and Coverage
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.19.1'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run linter
run: yarn lint

- name: Build project
run: yarn build:prod

- name: Run tests with coverage
run: yarn test:coverage

- name: Check coverage thresholds
run: |
if [ -f coverage/lcov.info ]; then
echo "Coverage report generated successfully"
# You can add coverage threshold checks here if needed
# For example, using a tool like nyc or custom scripts
else
echo "Warning: Coverage report not found"
exit 1
fi

# Uncomment to upload coverage to Codecov
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# file: ./coverage/lcov.info
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}

# Uncomment to upload coverage to Coveralls
# - name: Upload coverage to Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./coverage/lcov.info
Loading