Skip to content

Match CLA to geopilot #532

Match CLA to geopilot

Match CLA to geopilot #532

Workflow file for this run

name: Ci
on:
push:
jobs:
ci:
runs-on: ubuntu-latest
name: Run build, test and lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
# Run the npm ci command before building
# the dotnet project, because the project
# itself calls npm install if the node_modules
# folder does not exist.
- name: Run frontend ci
working-directory: ./src/ILICheck.Web/ClientApp
run: npm ci
- name: Install dependencies
run: dotnet restore
- name: Build dotnet
run: dotnet build
- name: Test
run: dotnet test
- name: Build frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run build --if-present
- name: Lint frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run lint
- name: Test frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run test