Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
fix: a
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Kutliakhmetov committed Aug 31, 2023
1 parent 0ae3b65 commit 8809549
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,47 @@ 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:
runs-on: front
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
Expand All @@ -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

0 comments on commit 8809549

Please sign in to comment.