feat(api): enable livenessProbe, readinessProbe and startupProbe (#1149) #243
Workflow file for this run
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: "[QA] Quality Checks UI" | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- 'app/ui/*' | |
push: | |
paths: | |
- 'app/ui/*' | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ vars.NODE_VERSION_UI_TESTS }} | |
cache: yarn | |
cache-dependency-path: app/ui/yarn.lock | |
- name: Run UI ESLinter | |
working-directory: ./app/ui | |
run: | | |
yarn install | |
yarn run lint | |
- name: UI Run tests | |
working-directory: ./app/ui | |
run: | | |
yarn install | |
yarn run test:cov:sonar | |
- name: UI Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: | | |
./app/ui/coverage | |
./app/ui/test-report.xml | |
- name: UI Run e2e tests | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
tag: node-${{ vars.NODE_VERSION_UI_TESTS }} | |
wait-on: 'http://localhost:3001' | |
wait-on-timeout: 120 | |
working-directory: ./app/ui | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
needs: quality-checks | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Download code coverage results | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage-report | |
path: app/ui | |
- name: Fix code coverage paths | |
working-directory: app/ui | |
run: | | |
sed -i 's|/home/runner/work/kdl-server/kdl-server/|/github/workspace/|g' coverage/lcov.info | |
sed -i 's|/home/runner/work/kdl-server/kdl-server/|/github/workspace/|g' test-report.xml | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
projectBaseDir: app/ui |