diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1ebe3529d..5e2703f67 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,16 +9,16 @@ on: type: string required: false description: The matrix-js-sdk commit to build against instead of the locked one - enable_coverage: + disable_coverage: type: boolean required: false - default: true - description: Enable generating and uploading coverage reports - enable_e2e_tests: + default: false + description: Skip generating and uploading coverage reports + disable_e2e_tests: type: boolean required: false - default: true - description: Enable the end-to-end tests + default: false + description: Skip the end-to-end tests secrets: CODECOV_TOKEN: required: false @@ -61,9 +61,9 @@ jobs: - name: Vitest run: pnpm vitest --coverage.enabled="$ENABLE_COVERAGE" env: - ENABLE_COVERAGE: ${{ inputs.enable_coverage != false }} + ENABLE_COVERAGE: ${{ !inputs.disable_coverage }} - name: Upload to codecov - if: ${{ inputs.enable_coverage != false }} + if: ${{ !inputs.disable_coverage }} uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -72,7 +72,7 @@ jobs: fail_ci_if_error: true playwright: name: Run end-to-end tests - if: ${{ inputs.enable_e2e_tests != false }} + if: ${{ !inputs.disable_e2e_tests }} timeout-minutes: 60 runs-on: ubuntu-latest steps: