Unverified Commit 1660f230 authored by Janka Uryga's avatar Janka Uryga Committed by GitHub

ci: make inputs.skipNativeInstall do what it says (#69674)

...instead of doing the opposite

before this PR:
- `skipNativeInstall: 'yes'` sets `NEXT_SKIP_NATIVE_POSTINSTALL=''`
- `skipNativeInstall: 'no'` sets `NEXT_SKIP_NATIVE_POSTINSTALL=true`

after this PR:
- `skipNativeInstall: 'yes'` sets `NEXT_SKIP_NATIVE_POSTINSTALL='1'`
- `skipNativeInstall: 'no'` sets `NEXT_SKIP_NATIVE_POSTINSTALL=''`
parent d282e7a9
...@@ -25,6 +25,7 @@ on: ...@@ -25,6 +25,7 @@ on:
required: false required: false
description: 'whether to skip native postinstall script' description: 'whether to skip native postinstall script'
type: string type: string
default: 'yes'
uploadAnalyzerArtifacts: uploadAnalyzerArtifacts:
required: false required: false
description: 'whether to upload analyzer artifacts' description: 'whether to upload analyzer artifacts'
...@@ -76,7 +77,7 @@ env: ...@@ -76,7 +77,7 @@ env:
TURBO_REMOTE_ONLY: 'true' TURBO_REMOTE_ONLY: 'true'
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
# allow not skipping install-native postinstall script if we don't have a binary available already # allow not skipping install-native postinstall script if we don't have a binary available already
NEXT_SKIP_NATIVE_POSTINSTALL: ${{ inputs.skipNativeInstall != 'yes' && 'true' || '' }} NEXT_SKIP_NATIVE_POSTINSTALL: ${{ inputs.skipNativeInstall == 'yes' && '1' || '' }}
DATADOG_API_KEY: ${{ secrets.DATA_DOG_API_KEY }} DATADOG_API_KEY: ${{ secrets.DATA_DOG_API_KEY }}
NEXT_JUNIT_TEST_REPORT: 'true' NEXT_JUNIT_TEST_REPORT: 'true'
DD_ENV: 'ci' DD_ENV: 'ci'
......
...@@ -50,7 +50,7 @@ jobs: ...@@ -50,7 +50,7 @@ jobs:
with: with:
afterBuild: NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e afterBuild: NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
skipNativeBuild: 'yes' skipNativeBuild: 'yes'
skipNativeInstall: 'yes' skipNativeInstall: 'no'
stepName: 'test-deploy-${{ matrix.group }}' stepName: 'test-deploy-${{ matrix.group }}'
timeout_minutes: 180 timeout_minutes: 180
runs_on_labels: '["ubuntu-latest"]' runs_on_labels: '["ubuntu-latest"]'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment