workflow and repo cleanup

This commit is contained in:
Hayden 2022-09-09 11:34:19 -08:00
parent 89591b2c60
commit 79d256b761
3 changed files with 9 additions and 21 deletions

View file

@ -1,4 +1,4 @@
name: Frontend / Integration
name: Frontend / E2E
on:
workflow_call:
@ -7,6 +7,11 @@ jobs:
Frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Task
uses: arduino/setup-task@v1
@ -23,27 +28,9 @@ jobs:
with:
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
run: pnpm install
working-directory: frontend
- name: Run Integration Tests
run: task test:integration
run: task test:ci

View file

@ -18,6 +18,7 @@ jobs:
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
deploy:
name: "Deploy Nightly to Fly.io"
runs-on: ubuntu-latest
needs:
- backend-tests

View file

@ -31,7 +31,7 @@ tasks:
- cd backend && go test -race -coverprofile=coverage.out -covermode=atomic ./app/... ./internal/... ./pkgs/... -v -cover
silent: true
test:integration:
test:ci:
cmds:
- cd backend && go build ./app/api
- backend/api &