66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: Frontend Actions
|
|
run-name: ${{ gitea.actor }} is running frontend actions
|
|
on: [push]
|
|
|
|
jobs:
|
|
# 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
|
|
defaults:
|
|
run:
|
|
working-directory: ./backend
|
|
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-${{ hashFiles('ui/package-lock.json') }}
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
- name: Build UI
|
|
run: npm run build
|
|
|
|
test:
|
|
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-${{ hashFiles('ui/package-lock.json') }}
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
- name: Run tests
|
|
run: npm run test
|