mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 22:39:14 +01:00
* Remove documents table (WIP) * Further cleanup of documents table * This should clean up the errors, but actual attachment handling still needs added. * Full generation to update the JS side of things too * Further fixes * Fix cyclic dependency issue * In theory the API side works now * Fix go linting issues * Fix frontend issues * Way closer, but has a foreign key constrant issue * UI actually works now * Fix deduplication feature not working right * Upgrade to `golangci-lint` v2 file * Add ability to set primary during attachment creation * Update swagger with new primary attachment during creation stuff * Files are actually saved now, but there's still a bug * Fix critical issue whith how deletions were working * Fix the byte copy issue * Hopefully everything is fixed now * Fix golangci-lint config and lint files * Fix lint issue * Fix a few more tests * Fix lint issues again * More minor test fixes * Update backend/internal/core/services/service_items_attachments.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix migration (I think) * Fixed postgres migration * Change some migration options to work better * Some more little things that I tried * Fix merge go.mod * Fix migrations * Little lint thing * Fix AttachmentsList.vue with updated API --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
42 lines
1002 B
YAML
42 lines
1002 B
YAML
name: Go Build/Test
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
Go:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.21"
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v7
|
|
with:
|
|
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
|
version: latest
|
|
|
|
# Optional: working directory, useful for monorepos
|
|
working-directory: backend
|
|
args: --timeout=6m
|
|
|
|
- name: Build API
|
|
run: task go:build
|
|
|
|
- name: Test
|
|
run: task go:coverage
|
|
|
|
- name: Validate OpenAPI definition
|
|
uses: swaggerexpert/swagger-editor-validate@v1
|
|
with:
|
|
definition-file: backend/app/api/static/docs/swagger.json
|