|
5 | 5 | - cron: '0 2 * * *'
|
6 | 6 | workflow_dispatch:
|
7 | 7 |
|
8 |
| -env: |
9 |
| - DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
10 |
| - |
11 | 8 | jobs:
|
12 |
| - tests-gradle: |
13 |
| - if: "!startsWith(github.head_ref, 'release-')" |
14 |
| - runs-on: macos-14 |
15 |
| - steps: |
16 |
| - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 |
17 |
| - - name: Bump Kotlin in libraries.toml |
18 |
| - run: | |
19 |
| - ./scripts/bump-kotlin-in-libraries-toml.main.kts |
20 |
| - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 |
21 |
| - with: |
22 |
| - distribution: 'temurin' |
23 |
| - java-version: 17 |
24 |
| - - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2 |
25 |
| - with: |
26 |
| - gradle-home-cache-cleanup: true |
27 |
| - - name: Build with Gradle |
28 |
| - run: | |
29 |
| - ./gradlew ciTestsGradle |
30 |
| - - name: Collect Diagnostics |
31 |
| - if: always() |
32 |
| - run: ./scripts/collect-diagnostics.main.kts |
33 |
| - - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
34 |
| - if: always() |
35 |
| - with: |
36 |
| - name: tests-gradle.zip |
37 |
| - path: diagnostics.zip |
38 |
| - |
39 |
| - tests-no-gradle: |
40 |
| - if: "!startsWith(github.head_ref, 'release-')" |
| 9 | + push-kotlin-nightlies-branch: |
41 | 10 | runs-on: macos-14
|
42 | 11 | steps:
|
43 | 12 | - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
|
44 | 13 | - name: Bump Kotlin in libraries.toml
|
| 14 | + run: ./scripts/bump-kotlin-in-libraries-toml.main.kts |
| 15 | + - name: Push changes to kotlin-nightlies branch |
45 | 16 | run: |
|
46 |
| - ./scripts/bump-kotlin-in-libraries-toml.main.kts |
47 |
| - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 |
48 |
| - with: |
49 |
| - distribution: 'temurin' |
50 |
| - java-version: 17 |
51 |
| - - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2 |
52 |
| - with: |
53 |
| - gradle-home-cache-cleanup: true |
54 |
| - - name: Build with Gradle |
55 |
| - run: | |
56 |
| - ./gradlew ciTestsNoGradle --stacktrace |
57 |
| - - name: Collect Diagnostics |
58 |
| - if: always() |
59 |
| - run: ./scripts/collect-diagnostics.main.kts |
60 |
| - - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
61 |
| - if: always() |
62 |
| - with: |
63 |
| - name: tests-no-gradle.zip |
64 |
| - path: diagnostics.zip |
65 |
| - |
66 |
| - tests-integration: |
67 |
| - if: "!startsWith(github.head_ref, 'release-')" |
68 |
| - runs-on: macos-14 |
69 |
| - steps: |
70 |
| - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 |
71 |
| - - name: Bump Kotlin in libraries.toml |
72 |
| - run: | |
73 |
| - ./scripts/bump-kotlin-in-libraries-toml.main.kts |
74 |
| - git add gradle/libraries.toml && git commit -m "Bump Kotlin" |
75 |
| - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 |
76 |
| - with: |
77 |
| - distribution: 'temurin' |
78 |
| - java-version: 17 |
79 |
| - - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2 |
80 |
| - with: |
81 |
| - gradle-home-cache-cleanup: true |
82 |
| - - name: Build with Gradle |
83 |
| - run: | |
84 |
| - ./gradlew -p tests ciBuild |
85 |
| - - name: Collect Diagnostics |
86 |
| - if: always() |
87 |
| - run: ./scripts/collect-diagnostics.main.kts |
88 |
| - - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
89 |
| - if: always() |
90 |
| - with: |
91 |
| - name: tests-integration.zip |
92 |
| - path: diagnostics.zip |
93 |
| - |
94 |
| - intellij-plugin: |
95 |
| - if: "!startsWith(github.head_ref, 'release-')" |
96 |
| - name: Build IntelliJ Plugin |
97 |
| - runs-on: ubuntu-latest |
98 |
| - outputs: |
99 |
| - version: ${{ steps.properties.outputs.version }} |
100 |
| - steps: |
101 |
| - # Free GitHub Actions Environment Disk Space |
102 |
| - - name: Maximize Build Space |
103 |
| - run: | |
104 |
| - sudo rm -rf /usr/share/dotnet |
105 |
| - sudo rm -rf /usr/local/lib/android |
106 |
| - sudo rm -rf /opt/ghc |
107 |
| -
|
108 |
| - # Check out current repository |
109 |
| - - name: Fetch Sources |
110 |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 |
111 |
| - |
112 |
| - - name: Bump Kotlin in libraries.toml |
113 |
| - run: | |
114 |
| - ./scripts/bump-kotlin-in-libraries-toml.main.kts |
115 |
| -
|
116 |
| - # Setup Java 11 environment for the next steps |
117 |
| - - name: Setup Java |
118 |
| - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 |
119 |
| - with: |
120 |
| - distribution: 'temurin' |
121 |
| - java-version: 17 |
122 |
| - |
123 |
| - # Set environment variables |
124 |
| - - name: Export Properties |
125 |
| - id: properties |
126 |
| - shell: bash |
127 |
| - run: | |
128 |
| - PROPERTIES="$(./gradlew :intellij-plugin:properties --console=plain -q)" |
129 |
| - VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" |
130 |
| - NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')" |
131 |
| -
|
132 |
| - echo "::set-output name=version::$VERSION" |
133 |
| - echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" |
134 |
| -
|
135 |
| - ./gradlew :intellij-plugin:listProductsReleases # prepare list of IDEs for Plugin Verifier |
136 |
| -
|
137 |
| - # Trigger code generation in test project, as the plugin's tests depend on it |
138 |
| - - name: Test project codegen |
139 |
| - run: ./gradlew -p tests :intellij-plugin-test-project:generateApolloSources |
140 |
| - |
141 |
| - # Run tests |
142 |
| - - name: Run Tests |
143 |
| - run: ./gradlew :intellij-plugin:check |
144 |
| - |
145 |
| - # Collect Tests Result of failed tests |
146 |
| - - name: Collect Tests Result |
147 |
| - if: ${{ failure() }} |
148 |
| - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
149 |
| - with: |
150 |
| - name: tests-result |
151 |
| - path: ${{ github.workspace }}/intellij-plugin/build/reports/tests |
152 |
| - |
153 |
| - # Cache Plugin Verifier IDEs |
154 |
| - - name: Setup Plugin Verifier IDEs Cache |
155 |
| - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 #v4.0.2 |
156 |
| - with: |
157 |
| - path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides |
158 |
| - key: plugin-verifier-${{ hashFiles('intellij-plugin/build/listProductsReleases.txt') }} |
159 |
| - |
160 |
| - # Run Verify Plugin task and IntelliJ Plugin Verifier tool |
161 |
| - - name: Run Plugin Verification tasks |
162 |
| - run: ./gradlew :intellij-plugin:runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} |
163 |
| - |
164 |
| - # Collect Plugin Verifier Result |
165 |
| - - name: Collect Plugin Verifier Result |
166 |
| - if: ${{ always() }} |
167 |
| - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
168 |
| - with: |
169 |
| - name: pluginVerifier-result |
170 |
| - path: ${{ github.workspace }}/intellij-plugin/build/reports/pluginVerifier |
171 |
| - |
172 |
| - # Prepare plugin archive content for creating artifact |
173 |
| - - name: Prepare Plugin Artifact |
174 |
| - id: artifact |
175 |
| - shell: bash |
176 |
| - run: | |
177 |
| - cd ${{ github.workspace }}/intellij-plugin/build/distributions |
178 |
| - FILENAME=`ls *.zip` |
179 |
| - unzip "$FILENAME" -d content |
180 |
| -
|
181 |
| - echo "::set-output name=filename::${FILENAME:0:-4}" |
182 |
| -
|
183 |
| - # Store already-built plugin as an artifact for downloading |
184 |
| - - name: Upload artifact |
185 |
| - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 |
186 |
| - with: |
187 |
| - name: ${{ steps.artifact.outputs.filename }} |
188 |
| - path: ./intellij-plugin/build/distributions/content/*/* |
| 17 | + git add . |
| 18 | + git commit -m "Bump Kotlin version" |
| 19 | + git push --force origin kotlin-nightlies |
0 commit comments