Compare commits
1 Commits
main
...
9947833bd0
| Author | SHA1 | Date | |
|---|---|---|---|
| 9947833bd0 |
@ -3,23 +3,28 @@ run-name: ${{ gitea.actor }} is running frontend actions
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# check:
|
check:
|
||||||
# runs-on: rust-nextest
|
runs-on: ubuntu-latest
|
||||||
# defaults:
|
defaults:
|
||||||
# run:
|
run:
|
||||||
# working-directory: ./backend
|
working-directory: ./ui
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/setup-node@v4
|
||||||
# - name: Load Cache
|
with:
|
||||||
# uses: actions/cache@v4
|
version: '24'
|
||||||
# with:
|
- uses: actions/checkout@v4
|
||||||
# path: |
|
- name: Load Cache
|
||||||
# ~/.cargo/registry
|
uses: actions/cache@v4
|
||||||
# ~/.cargo/git
|
with:
|
||||||
# backend/target
|
path: |
|
||||||
# key: ${{ runner.os }}-cargo-check-${{ hashFiles('backend/Cargo.lock') }}
|
ui/node_modules
|
||||||
# - name: Run Clippy
|
key: ${{ runner.os }}-node-check-${{ hashFiles('ui/package-lock.json') }}
|
||||||
# run: cargo clippy --no-deps -- -Dwarnings -Dclippy::correctness -Wclippy::pedantic -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run Eslint
|
||||||
|
run: npm run lint
|
||||||
|
- name: Run Prettier
|
||||||
|
run: npm run fmt -- . --check
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@ -37,7 +42,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-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