mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-22 02:20:29 +00:00
Initial commit
This commit is contained in:
commit
29f583e936
135 changed files with 18463 additions and 0 deletions
60
.github/workflows/go.yaml
vendored
Normal file
60
.github/workflows/go.yaml
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
name: Go Build/Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**.go"
|
||||
- "client/**/*.ts"
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**.go"
|
||||
- "client/**/*.ts"
|
||||
|
||||
jobs:
|
||||
go-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v1
|
||||
|
||||
- name: Build API
|
||||
run: task api:build
|
||||
|
||||
- name: Build CLI
|
||||
run: task cli:build
|
||||
- name: Test
|
||||
run: task api:coverage
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
run: cd backend && bash <(curl -s https://codecov.io/bash)
|
||||
end-to-end:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v1
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- name: Build API
|
||||
run: task api:build
|
||||
|
||||
- name: Setup Node
|
||||
working-directory: ./client
|
||||
run: npm install
|
||||
|
||||
- name: Test
|
||||
run: task client:test
|
23
.github/workflows/publish.yaml
vendored
Normal file
23
.github/workflows/publish.yaml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Build Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
- name: login to container registry
|
||||
run: docker login ghcr.io --username hay-kot --password $CR_PAT
|
||||
env:
|
||||
CR_PAT: ${{ secrets.CR_PAT }}
|
||||
- name: Build Docker Image
|
||||
run: cd backend && docker build -t ghcr.io/hay-kot/go-web-template:latest .
|
||||
- name: push to container registry
|
||||
run: docker push ghcr.io/hay-kot/go-web-template:latest
|
Loading…
Add table
Add a link
Reference in a new issue