add workflow for ui
Some checks failed
Backend Actions / check (push) Successful in 15s
Backend Actions / build (push) Successful in 26s
Backend Actions / test (push) Successful in 34s
Frontend Actions / build (push) Has started running
Frontend Actions / test (push) Has started running
Frontend Actions / check (push) Has been cancelled
Some checks failed
Backend Actions / check (push) Successful in 15s
Backend Actions / build (push) Successful in 26s
Backend Actions / test (push) Successful in 34s
Frontend Actions / build (push) Has started running
Frontend Actions / test (push) Has started running
Frontend Actions / check (push) Has been cancelled
This commit is contained in:
@ -3,30 +3,11 @@ run-name: ${{ gitea.actor }} is running frontend actions
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# check:
|
check:
|
||||||
# runs-on: rust-nextest
|
|
||||||
# defaults:
|
|
||||||
# run:
|
|
||||||
# working-directory: ./backend
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# - name: Load Cache
|
|
||||||
# uses: actions/cache@v4
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/.cargo/registry
|
|
||||||
# ~/.cargo/git
|
|
||||||
# backend/target
|
|
||||||
# key: ${{ runner.os }}-cargo-check-${{ hashFiles('backend/Cargo.lock') }}
|
|
||||||
# - name: Run Clippy
|
|
||||||
# run: cargo clippy --no-deps -- -Dwarnings -Dclippy::correctness -Wclippy::pedantic -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc
|
|
||||||
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./backend
|
working-directory: ./ui
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -37,7 +18,31 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
ui/node_modules
|
ui/node_modules
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('ui/package-lock.json') }}
|
key: ${{ runner.os }}-node-check-${{ hashFiles('ui/package-lock.json') }}
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run Eslint
|
||||||
|
run: npm run lint
|
||||||
|
- name: Run Prettier
|
||||||
|
run: npm run fmt -- . --check
|
||||||
|
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./ui
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
version: '24'
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Load Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
ui/node_modules
|
||||||
|
key: ${{ runner.os }}-node-build-${{ hashFiles('ui/package-lock.json') }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build UI
|
- name: Build UI
|
||||||
@ -58,7 +63,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
ui/node_modules
|
ui/node_modules
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('ui/package-lock.json') }}
|
key: ${{ runner.os }}-node-test-${{ hashFiles('ui/package-lock.json') }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
Reference in New Issue
Block a user