@@ -28,26 +28,11 @@ permissions:
2828 # This permission is required by `MishaKav/jest-coverage-comment`
2929 pull-requests : write
3030
31- jobs :
32- base :
33- name : Base Tasks
34- runs-on : ubuntu-latest
35- outputs :
36- turbo_args : ${{ steps.turborepo_arguments.outputs.turbo_args }}
37-
38- steps :
39- - name : Harden Runner
40- uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
41- with :
42- egress-policy : audit
43-
44- - name : Provide Turborepo Arguments
45- # This step is responsible for providing a reusable string that can be used within other steps and jobs
46- # that use the `turbo` cli command as a way of easily providing shared arguments to the `turbo` command
47- id : turborepo_arguments
48- # See https://turbo.build/repo/docs/reference/command-line-reference/run#--force
49- run : echo "turbo_args=--force=true" >> "$GITHUB_OUTPUT"
31+ env :
32+ # See https://turbo.build/repo/docs/reference/command-line-reference/run#--force
33+ TURBO_FORCE : true
5034
35+ jobs :
5136 lint :
5237 # This Job should run either on `merge_groups` or `push` events
5338 # or `pull_request_target` event with a `labeled` action with a label named `github_actions:pull-request`
6146
6247 name : Quality checks
6348 runs-on : ubuntu-latest
64- needs : [base]
6549
6650 steps :
6751 - name : Harden Runner
11599 (github.event_name == 'pull_request_target' &&
116100 github.event.pull_request.head.ref != 'chore/crowdin')
117101 # We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
118- # the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
119- run : npx --package=turbo@latest -- turbo lint check-types prettier ${{ needs.base.outputs.turbo_args }}
102+ run : npx --package=turbo@latest -- turbo lint check-types prettier
120103
121104 - name : Save Lint Cache
122105 # We only want to save caches on `push` events or `pull_request_target` events
@@ -151,7 +134,6 @@ jobs:
151134
152135 name : Tests
153136 runs-on : ubuntu-latest
154- needs : [base]
155137
156138 environment :
157139 name : Storybook
@@ -188,8 +170,7 @@ jobs:
188170 # We want to run Unit Tests in every circumstance, including Crowdin PRs and Dependabot PRs to ensure
189171 # that changes to dependencies or translations don't break the Unit Tests
190172 # We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
191- # the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
192- run : npx --package=turbo@latest -- turbo test:unit ${{ needs.base.outputs.turbo_args }} -- --ci --coverage
173+ run : npx --package=turbo@latest -- turbo test:unit -- --ci --coverage
193174
194175 - name : Start Visual Regression Tests (Chromatic)
195176 # This assigns the Environment Deployment for Storybook
0 commit comments