WebUI: Add separate function to create table rows #576
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 - WebUI | |
on: [pull_request, push] | |
permissions: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: ${{ github.head_ref != '' }} | |
jobs: | |
ci: | |
name: Check | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
defaults: | |
run: | |
working-directory: src/webui/www | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Install tools | |
run: | | |
npm install | |
npm ls | |
echo "::group::npm ls --all" | |
npm ls --all | |
echo "::endgroup::" | |
- name: Run tests | |
run: npm test | |
- name: Lint code | |
run: npm run lint | |
- name: Format code | |
run: | | |
npm run format | |
git diff --exit-code | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
config-file: .github/workflows/helper/codeql/js.yaml | |
languages: javascript | |
- name: Run CodeQL analysis | |
uses: github/codeql-action/analyze@v3 |