Reflow (Rivers and Sea map) (#154) #533
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: 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 }} |