Skip to content
Closed
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Code Coverage

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

jobs:
coverage:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run tests and collect coverage
run: |
npm run test -- --coverage
npx codecov
12 changes: 10 additions & 2 deletions .github/workflows/disable-deploy-for-new-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add vercel.json
git commit -m "Disable auto deploy for branch $BRANCH_NAME"
git push

# Check if there are any changes to commit
if git diff --cached --quiet; then
echo "No changes to commit, skipping git commit."
else
git commit -m "Disable auto deploy for branch $BRANCH_NAME"
git push
fi
else
echo "Branch $BRANCH_NAME already exists in vercel.json, skipping."
fi