Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/frontend_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,36 @@ on:
- ui/**

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'ui/.nvmrc'
cache: 'npm'
cache-dependency-path: 'ui/package-lock.json'

- name: Install dependencies
run: npm ci
working-directory: ./ui

- name: Run Prettier format check
run: npm run format:check
working-directory: ./ui

- name: Run ESLint
run: npm run lint
working-directory: ./ui

# Currently there are no tests to run before build

build:
needs: lint
runs-on: ubuntu-latest

# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,32 @@ jobs:
run: poetry run test
working-directory: ./backend

lint-frontend:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'ui/.nvmrc'
cache: 'npm'
cache-dependency-path: 'ui/package-lock.json'

- name: Install dependencies
run: npm ci
working-directory: ./ui

- name: Run Prettier format check
run: npm run format:check
working-directory: ./ui

- name: Run ESLint
run: npm run lint
working-directory: ./ui

lint-helm:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"plugins": ["react-refresh"],
"rules": {
"react/prop-types": "off",
"react/jsx-no-target-blank": "off",
"react-refresh/only-export-components": [
"warn",
Expand Down
6 changes: 6 additions & 0 deletions ui/public/icons/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading