Skip to content

Commit 8f52183

Browse files
authored
Run pre-merge PR checks on GitHub Actions (#2414)
It adds all pre-merge checks that we currently have in TeamCity to GitHub Actions. [CMP-8945](https://youtrack.jetbrains.com/issue/CMP-8945) Run web tests with the latest and the minimal supported version of browsers [CMP-8136](https://youtrack.jetbrains.com/issue/CMP-8136) PR checks runs always by main teamcity config [CMP-5663](https://youtrack.jetbrains.com/issue/CMP-5663) Run TeamCity automatically on user PR's after pressing "Approve and Run" Also, ignored flaky tests (with TODO and follow-up tasks) ## Release Notes N/A
1 parent e189e68 commit 8f52183

34 files changed

Lines changed: 395 additions & 772 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/OWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/actions/build-single-project/action.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Setup Prerequisites'
2+
runs:
3+
using: "composite"
4+
steps:
5+
- name: Setup JDK 21
6+
uses: actions/setup-java@v4
7+
with:
8+
java-version: '21'
9+
distribution: 'corretto'
10+
11+
- name: Setup Android SDK
12+
uses: android-actions/setup-android@v2
13+
14+
- name: Setup Gradle
15+
uses: gradle/actions/setup-gradle@v4
16+
with:
17+
# Only save Gradle User Home state for builds on the 'jb-main' branch.
18+
# Builds on other branches will only read existing entries from the cache.
19+
cache-read-only: ${{ github.ref != 'refs/heads/jb-main' }}
20+
21+
# Limit the size of the cache entry.
22+
# These directories contain instrumented/transformed dependency jars which can be reconstructed relatively quickly.
23+
gradle-home-cache-excludes: |
24+
caches/jars-9
25+
caches/transforms-3
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Setup Xcode'
2+
runs:
3+
using: "composite"
4+
steps:
5+
# List of available Xcode versions:
6+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md#xcode
7+
# Note that explicit download is required due to updated support policy:
8+
# https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
9+
- name: Setup Xcode version
10+
shell: bash
11+
run: |
12+
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
13+
xcodebuild -downloadPlatform iOS -buildVersion 18.2
14+
/usr/bin/xcodebuild -version
15+
16+
- name: Cache Xcode DerivedData
17+
uses: irgaly/xcode-cache@v1
18+
with:
19+
key: xcode-cache-deriveddata-${{ github.sha }}
20+
restore-keys: xcode-cache-deriveddata-
21+
# Only save DerivedData state for builds on the 'jb-main' branch.
22+
# Builds on other branches will only read existing entries from the cache.
23+
cache-read-only: ${{ github.ref != 'refs/heads/jb-main' }}

.github/ci-control/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/ci-control/ci-config.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/ci-control/should_run_project.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/cfw.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check Public API
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- jb-main
8+
9+
jobs:
10+
check-public-api:
11+
runs-on: macos-15-xlarge
12+
name: Check Public API
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v5
16+
17+
- name: Setup Prerequisites
18+
uses: ./.github/actions/setup-prerequisites
19+
20+
- name: Setup Xcode
21+
uses: ./.github/actions/setup-xcode
22+
23+
- name: Check Public API
24+
run: |
25+
./gradlew jbApiCheck \
26+
--no-daemon --stacktrace

0 commit comments

Comments
 (0)