mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-18 13:06:32 +00:00
workflow and repo cleanup
This commit is contained in:
parent
89591b2c60
commit
79d256b761
3 changed files with 9 additions and 21 deletions
27
.github/workflows/frontend.yaml
vendored
27
.github/workflows/frontend.yaml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Frontend / Integration
|
name: Frontend / E2E
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
@ -7,6 +7,11 @@ jobs:
|
||||||
Frontend:
|
Frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: arduino/setup-task@v1
|
uses: arduino/setup-task@v1
|
||||||
|
|
||||||
|
@ -23,27 +28,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: 6.0.2
|
version: 6.0.2
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2.2.2
|
|
||||||
with:
|
|
||||||
version: 6.0.2
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
|
||||||
- name: Run Integration Tests
|
- name: Run Integration Tests
|
||||||
run: task test:integration
|
run: task test:ci
|
||||||
|
|
1
.github/workflows/publish.yaml
vendored
1
.github/workflows/publish.yaml
vendored
|
@ -18,6 +18,7 @@ jobs:
|
||||||
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
|
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
name: "Deploy Nightly to Fly.io"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- backend-tests
|
- backend-tests
|
||||||
|
|
|
@ -31,7 +31,7 @@ tasks:
|
||||||
- cd backend && go test -race -coverprofile=coverage.out -covermode=atomic ./app/... ./internal/... ./pkgs/... -v -cover
|
- cd backend && go test -race -coverprofile=coverage.out -covermode=atomic ./app/... ./internal/... ./pkgs/... -v -cover
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
test:integration:
|
test:ci:
|
||||||
cmds:
|
cmds:
|
||||||
- cd backend && go build ./app/api
|
- cd backend && go build ./app/api
|
||||||
- backend/api &
|
- backend/api &
|
||||||
|
|
Loading…
Reference in a new issue