From 8809549364866a850e5d318458cad3db0a362d3b Mon Sep 17 00:00:00 2001 From: Ruslan Kutliakhmetov Date: Fri, 1 Sep 2023 03:50:56 +0500 Subject: [PATCH] fix: a --- .github/workflows/pull-request.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b78d7f1d..3595c396 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -32,8 +32,10 @@ jobs: needs: checkout steps: - name: Install dependencies + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} run: | - cd ${{ needs.checkout.outputs.workspace_path }} + cd $workspace_path yarn tests: @@ -41,28 +43,36 @@ jobs: needs: setup steps: - name: Run tests - run: cd ${{ needs.checkout.outputs.workspace_path }} && yarn test + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} + run: cd $workspace_path && yarn test eslint: runs-on: front needs: setup steps: - name: Run eslint - run: cd ${{ needs.checkout.outputs.workspace_path }} && yarn eslint + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} + run: cd $workspace_path && yarn eslint tslint: runs-on: front needs: setup steps: - name: Run tslint - run: cd ${{ needs.checkout.outputs.workspace_path }} && yarn tslint + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} + run: cd $workspace_path && yarn tslint prettier: runs-on: front needs: setup steps: - name: Run prettier - run: cd ${{ needs.checkout.outputs.workspace_path }} && yarn prettier + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} + run: cd $workspace_path && yarn prettier protect: runs-on: front @@ -77,4 +87,6 @@ jobs: if: github.event_name == 'pull_request' && github.event.action == 'closed' steps: - name: Clean up workspace - run: rm -rf ${{ needs.checkout.outputs.workspace_path }} + env: + workspace_path: ${{ steps.setup_workspace.outputs.workspace_path}} + run: rm -rf $workspace_path