Some checks failed
CI / Scraper / Test (pull_request) Successful in 11s
CI / Scraper / Lint (pull_request) Successful in 18s
CI / UI / Build (pull_request) Successful in 17s
CI / UI / Docker Push (pull_request) Has been skipped
CI / Scraper / Build (pull_request) Failing after 2m29s
CI / Scraper / Docker Push (pull_request) Has been skipped
iOS CI / Build (pull_request) Failing after 2s
iOS CI / Test (pull_request) Has been skipped
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: CI / UI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main", "master"]
|
|
paths:
|
|
- "ui/**"
|
|
- "justfile"
|
|
- ".gitea/workflows/ci-ui.yaml"
|
|
pull_request:
|
|
branches: ["main", "master"]
|
|
paths:
|
|
- "ui/**"
|
|
- "justfile"
|
|
- ".gitea/workflows/ci-ui.yaml"
|
|
|
|
concurrency:
|
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# ── type-check & build ───────────────────────────────────────────────────────
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: ui/package-lock.json
|
|
|
|
- name: Install just
|
|
run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
|
|
|
|
- name: Install dependencies
|
|
run: just ui-install
|
|
|
|
- name: Type check
|
|
run: just ui-check
|
|
|
|
- name: Build
|
|
run: just ui-build
|
|
|
|
# ── push to Docker Hub ───────────────────────────────────────────────────────
|
|
docker:
|
|
name: Docker Push
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
if: gitea.event_name == 'push'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: ui
|
|
push: true
|
|
tags: |
|
|
${{ secrets.DOCKER_USER }}/libnovel-ui:latest
|
|
${{ secrets.DOCKER_USER }}/libnovel-ui:${{ gitea.sha }}
|