Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use a standard pull_request trigger for kotlin.yml #1200

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 8 additions & 45 deletions .github/workflows/kotlin.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
name : Kotlin CI

on :
# Use pull_request_target so we can lock the runner down to run only on the main branch.
# When we want to test changes to this workflow, then we can use:
# pull_request :
# temporarily. We will also need to change the runner group permissions for the
# workflow-kotlin-test-runner-ubuntu-4core group so that it can run with the branch/SHA
# of the PR.
pull_request_target :
branches :
- main
pull_request :
merge_group :

env:
Expand All @@ -28,8 +20,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : main build
uses : ./.github/actions/gradle-task
Expand All @@ -44,8 +34,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Run dokka to validate kdoc
uses : ./.github/actions/gradle-task
Expand All @@ -59,8 +47,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : check published artifacts
uses : ./.github/actions/gradle-task-with-commit
Expand All @@ -77,8 +63,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : check published artifacts
uses : ./.github/actions/gradle-task-with-commit
Expand All @@ -94,8 +78,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

# If the PR was made by a maintainer or Renovate, automatically update baselines and push
# so that no one has to check out the branch and update the baselines manually.
Expand All @@ -113,8 +95,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

# If the PR was made by a maintainer or Renovate, automatically format and push
# so that no one has to check out the branch and do it manually.
Expand All @@ -132,8 +112,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

# If the PR was made by a maintainer or Renovate, automatically format and push
# so that no one has to check out the branch and do it manually.
Expand All @@ -153,8 +131,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -169,8 +146,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -196,8 +172,7 @@ jobs :
# These setup steps should be common across all jobs in this workflow.
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : build tutorials
uses : ./.github/actions/gradle-task
with :
Expand All @@ -212,8 +187,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -234,8 +208,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -256,8 +229,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -278,8 +250,7 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Check with Gradle
uses : ./.github/actions/gradle-task
with :
Expand All @@ -300,8 +271,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

## JS Specific Tests (for KMP js actuals in core and runtime).
- name : Check with Gradle
Expand Down Expand Up @@ -330,8 +299,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Instrumented tests
uses : ./.github/actions/gradle-tasks-with-emulator
Expand All @@ -357,8 +324,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Instrumented tests
uses : ./.github/actions/gradle-tasks-with-emulator
Expand Down Expand Up @@ -386,8 +351,6 @@ jobs :
steps :
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ github.head_ref }}

- name : Instrumented tests
uses : ./.github/actions/gradle-tasks-with-emulator
Expand Down
Loading