From 79d256b761200a81ec0a9b773c6cd633396fd165 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:34:19 -0800 Subject: [PATCH] workflow and repo cleanup --- .github/workflows/frontend.yaml | 27 +++++++-------------------- .github/workflows/publish.yaml | 1 + Taskfile.yml | 2 +- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 86a5c0c..9cab605 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -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 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 51e29e8..b6d3b76 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml index cc215da..bea4fd4 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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 &