Skip to content

improve jsdocs little bit, small refactoring, file splitting #61

improve jsdocs little bit, small refactoring, file splitting

improve jsdocs little bit, small refactoring, file splitting #61

name: Lint and build MapServer API and React client
on:
push:
branches:
- main
- develop
jobs:
build-client:
timeout-minutes: 10
runs-on: ubuntu-22.04
defaults:
run:
working-directory: react-client
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache Node.js dependencies
id: cache-node-modules
uses: actions/cache@v4
with:
path: react-client/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/react-client/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies for React client
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --silent --no-progress
- name: Run ESLint check
run: npm run eslint:check
- name: Build React client
run: npm run build
build-api:
timeout-minutes: 10
runs-on: ubuntu-22.04
defaults:
run:
working-directory: MapServer
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache .NET packages
id: cache-dotnet
uses: actions/cache@v4
with:
path: |
~/.nuget/packages
~/.local/share/NuGet/Cache
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-net
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore --verbosity quiet
- name: Set environment variables
run: echo "ASPNETCORE_ENVIRONMENT=CI" >> $GITHUB_ENV
- name: Build MapServer API
run: dotnet build --configuration Release --no-restore