Skip to content

Reflow (Rivers and Sea map) (#154) #533

Reflow (Rivers and Sea map) (#154)

Reflow (Rivers and Sea map) (#154) #533

Workflow file for this run

name: UNITTEST
on:
push:
jobs:
build:
runs-on: ubuntu-latest
env:
RISK_DATA_URL: unittest
ESRI_CLIENT_ID: unittest
ESRI_CLIENT_SECRET: unittest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonarcloud analysis
- name: Use Node.js '20.x'
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Run unit tests
run: |
npm install
npm run test
sed -i 's/\/home\/runner\/work\/cyltfr-app\/cyltfr-app\//\/github\/workspace\//g' test/output/lcov.info
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}