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: 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

View file

@ -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

View file

@ -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 &