Skip to content

Commit

Permalink
Merge pull request #25 from dhruv-1001/feat/district-polygon-centroid
Browse files Browse the repository at this point in the history
Feat/district polygon centroid
  • Loading branch information
dhruv-1001 authored Jan 30, 2024
2 parents 5f82412 + 24db96d commit c451416
Show file tree
Hide file tree
Showing 14 changed files with 460 additions and 6,290 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,30 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ./geoip # Set the path to your project root directory

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: ${{ matrix.node }}
bun-version: 1.0.23


- name: Install dependencies
run: npm install
run: bun install
working-directory: ./geoip/server # Set the working directory to your project root

- name: Run jest test
run: npx jest --coverage
- name: Run bun test
run: bun test
working-directory: ./geoip/server # Set the working directory to your project root

- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: ./geoip/coverage
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules

.idea
.idea
/server/geojson-data/*
.DS_store
server/.DS_Store
Binary file modified bun.lockb
Binary file not shown.
Loading

0 comments on commit c451416

Please sign in to comment.