Skip to content

Commit

Permalink
Merge pull request #261 from hotosm/feature/upload-AOI
Browse files Browse the repository at this point in the history
Feature : Let user upload their training area as geojson
  • Loading branch information
omranlm authored Jul 17, 2024
2 parents 41de917 + aff00d1 commit 567b77a
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 100 deletions.
50 changes: 24 additions & 26 deletions .github/workflows/frontend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,41 @@ name: Frontend Build

on:
push:
branches: [ master ]
branches: [master]
paths:
- 'frontend/**'
- '.github/workflows/frontend_build.yml'
- "frontend/**"
- ".github/workflows/frontend_build.yml"
pull_request:
branches: [ master ]
branches: [master]
paths:
- 'frontend/**'
- '.github/workflows/frontend_build.yml'
- "frontend/**"
- ".github/workflows/frontend_build.yml"

jobs:
Build_On_Ubuntu:

runs-on: ubuntu-latest
env:
CI: false

strategy:
matrix:
node-version: [ 16.14.2, 16, 18, 20 ]
node-version: [16, 18, 20]

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

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
cd frontend/
npm install --legacy-peer-deps
- name: Build
run: |
cd frontend/
npm run build
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
cd frontend/
npm install --legacy-peer-deps
- name: Build
run: |
cd frontend/
npm run build
7 changes: 4 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"name": "fair",
"version": "0.1.0",
"private": true,
"engines": {
"node": "16.14.2"
},
"dependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
Expand All @@ -18,6 +15,7 @@
"@mui/material": "^5.6.1",
"@mui/styles": "^5.12.0",
"@mui/x-data-grid": "^5.17.12",
"@terraformer/wkt": "^2.2.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
Expand Down Expand Up @@ -62,5 +60,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"ajv": "^7.2.4"
}
}
Loading

0 comments on commit 567b77a

Please sign in to comment.