Skip to content

fix(ui): loading state #499

fix(ui): loading state

fix(ui): loading state #499

Workflow file for this run

name: ci
on:
push:
branches:
- master
jobs:
build:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
runs-on: ubuntu-22.04
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/[email protected]
# https://github.com/marketplace/actions/setup-go-environment
- uses: actions/[email protected]
with:
go-version: "1.22"
# https://github.com/marketplace/actions/golangci-lint
- uses: golangci/[email protected]
with:
# https://github.com/golangci/golangci-lint/releases
version: "v1.59.1"
- run: make test
env:
DATABASE_URL: "sqlite://feedbox.db"
HOST: "127.0.0.1"
PORT: "8000"
ENV: "test"
SERVER: "http://localhost:8000"
SERVER_SUB_DIR: "/"
COOKIE_SECRET: "cd783ee4d0d8bb2cf92b867c8de42eaa906431d67bff5532e5e97114837106b4"
TELEGRAM_WEBHOOK_PATH: "131cd9868e9cf396a807c265a3c97e72"
GITHUB_CLIENT_ID: "https://github.com/settings/developers"
GITHUB_CLIENT_SECRET: "https://github.com/settings/developers"
# https://github.com/marketplace/actions/setup-node-js-environment
- uses: actions/[email protected]
with:
node-version: "22.x"
# https://github.com/marketplace/actions/cache
- uses: actions/[email protected]
with:
path: ~/.local/share/pnpm/store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- run: |
corepack enable
# https://www.npmjs.com/package/pnpm
corepack prepare [email protected] --activate
pnpm config set store-dir ~/.local/share/pnpm/store
pnpm install
make lint
env:
PNPM_HOME: /home/runner/.local/bin
working-directory: ./ui
- run: make build
# https://github.com/marketplace/actions/scp-command-to-transfer-files
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
source: "_build/feedbox"
target: "/opt/app/feedbox"
# https://github.com/marketplace/actions/ssh-remote-commands
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script_stop: true
script: sudo systemctl restart feedbox.service