diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index a3b57c2..2c3dfb0 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,5 +1,12 @@ name: 'Setup Node Env, Get & Cache Dependencies' description: 'Setup Node Env, Get & Cache Dependencies(via yarn) for faster builds' +on: + workflow_call: + inputs: + DATABASE_URL: + required: true + type: string + runs: using: 'composite' steps: @@ -17,3 +24,9 @@ runs: if: steps.cache-node-modules.outputs.cache-hit != 'true' run: bun install shell: bash + + - name: Run Migrations ๐Ÿš€ + run: bun run prisma:migrate + shell: bash + env: + DATABASE_URL: ${{ inputs.DATABASE_URL }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d8a150..4ea45b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,8 @@ jobs: - name: Setup ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป uses: ./.github/actions/setup + with: + DATABASE_URL: ${{ secrets.DATABASE_URL }} - name: Build Application ๐Ÿงฑ run: bun run build @@ -37,6 +39,8 @@ jobs: - name: Setup ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป uses: ./.github/actions/setup + with: + DATABASE_URL: ${{ secrets.DATABASE_URL }} - name: Lint JS files ๐Ÿฑ run: bun run lint @@ -57,6 +61,8 @@ jobs: - name: Setup ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป uses: ./.github/actions/setup + with: + DATABASE_URL: ${{ secrets.DATABASE_URL }} - name: Run unit tests ๐Ÿงช run: bun run test:coverage diff --git a/app/board/components/tasks/tasks-board.tsx b/app/board/components/tasks/tasks-board.tsx index 4156098..957b042 100644 --- a/app/board/components/tasks/tasks-board.tsx +++ b/app/board/components/tasks/tasks-board.tsx @@ -24,7 +24,7 @@ function TasksBoard({ showDone }: TasksBoard.Props) { if (!destination) return if (destination.droppableId === source.droppableId) { - reorderTasks( + await reorderTasks( source.droppableId as BoardKeyWithoutOverdue, source.index, destination.index