Remove deleted poi related code - related to #2075 #478
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# This workflow is triggered on every push. | |
# It runs the backend and frontend tests and uploads the coverage to Codecov. | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
backend-and-frontend-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.12' | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '7.0' | |
- name: Run backend tests | |
run: dotnet test Tests/IsraelHiking.API.Tests --logger "junit;LogFilePath=test-result.xml" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:Exclude="[IsraelHiking.Common]*" | |
- name: Run frontend tests | |
run: | | |
cd IsraelHiking.Web | |
npm ci | |
npm run test-ci | |
npx ng lint | |
- name: Codecov upload | |
if: always() | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./Tests/IsraelHiking.API.Tests/coverage.info,./IsraelHiking.Web/coverage/lcov.info | |
env: | |
CODECOV_TOKEN: fc1bea1d-f43a-437e-84d3-baef07be7454 | |
- name: Test Summary | |
if: always() | |
uses: test-summary/action@v2 | |
with: | |
paths: | | |
./**/test-result.xml | |
./**/TESTS-*.xml | |