Skip to content

Commit d1f2993

Browse files
committed
fixing format
1 parent dcc9a13 commit d1f2993

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

.github/workflows/presubmit.yaml

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ permissions:
1313
jobs:
1414
# Job 1: Build Plugin
1515
build-plugin:
16-
runs-on: [ ubuntu-latest, macos-latest, windows-latest ]
16+
runs-on: [ubuntu-latest, macos-latest, windows-latest]
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4 # Use the latest stable version of actions/checkout
2020

2121
- name: Set up JDK
2222
uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk
2323
with:
24-
distribution: 'temurin' # Recommended distribution
25-
java-version: '21' # Match version in build.gradle.kts
26-
cache: 'gradle' # Cache Gradle dependencies
24+
distribution: "temurin" # Recommended distribution
25+
java-version: "21" # Match version in build.gradle.kts
26+
cache: "gradle" # Cache Gradle dependencies
2727

2828
- name: Build Plugin Action
2929
run: ./gradlew buildPlugin
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
# TODO(https://github.com/flutter/dart-intellij-third-party/pull/33) Fix and enable execution on Windows
37-
os: [ ubuntu-latest, macos-latest, windows-latest ]
37+
os: [ubuntu-latest, macos-latest, windows-latest]
3838
runs-on: ${{ matrix.os }} # Use the OS from the matrix
3939
steps:
4040
- name: Checkout code
@@ -43,9 +43,9 @@ jobs:
4343
- name: Set up JDK
4444
uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk
4545
with:
46-
distribution: 'temurin' # Recommended distribution
47-
java-version: '21' # Match version in build.gradle.kts
48-
cache: 'gradle' # Cache Gradle dependencies
46+
distribution: "temurin" # Recommended distribution
47+
java-version: "21" # Match version in build.gradle.kts
48+
cache: "gradle" # Cache Gradle dependencies
4949

5050
- name: Unit Test Action
5151
run: ./gradlew :test --tests "com.jetbrains.lang.dart.*"
@@ -54,28 +54,27 @@ jobs:
5454
- name: Publish Test Report
5555
uses: ctrf-io/github-test-reporter@v1
5656
with:
57-
report-path: './target/surefire-reports/*.xml'
58-
integrations-config: |
59-
{
60-
"junit-to-ctrf": {
61-
"enabled": true,
62-
"action": "convert",
63-
"options": {
64-
"output": "./ctrf-reports/ctrf-report.json",
65-
"toolname": "junit-to-ctrf",
66-
"useSuiteName": false
57+
report-path: "./target/surefire-reports/*.xml"
58+
integrations-config: |
59+
{
60+
"junit-to-ctrf": {
61+
"enabled": true,
62+
"action": "convert",
63+
"options": {
64+
"output": "./ctrf-reports/ctrf-report.json",
65+
"toolname": "junit-to-ctrf",
66+
"useSuiteName": false
67+
}
6768
}
6869
}
69-
}
7070
if: always()
7171

7272
- name: Generate Unit Test Reports
7373
uses: ctrf-io/github-test-reporter@v1
74-
75-
if: ${{ !cancelled() }} # run this step even if previous step failed
74+
75+
if: ${{ !cancelled() }} # run this step even if previous step failed
7676
with:
77-
name: JUnit Tests # Name of the check run which will be created
78-
77+
name: JUnit Tests # Name of the check run which will be created
7978

8079
# Job 3: Dart Analysis Server Tests
8180
dart-analysis-server-tests:
@@ -90,8 +89,8 @@ jobs:
9089
# TODO(https://github.com/flutter/dart-intellij-third-party/issues/47)
9190
# Fix tests to run over additional operating systems as well as Dart SDK versions:
9291

93-
dart-version: ['stable']
94-
os: [ macos-latest, windows-latest ]
92+
dart-version: ["stable"]
93+
os: [macos-latest, windows-latest]
9594
runs-on: ${{ matrix.os }} # Use the OS from the matrix
9695
steps:
9796
- name: Checkout code
@@ -100,9 +99,9 @@ jobs:
10099
- name: Set up JDK
101100
uses: actions/setup-java@v4
102101
with:
103-
distribution: 'temurin'
104-
java-version: '21'
105-
cache: 'gradle'
102+
distribution: "temurin"
103+
java-version: "21"
104+
cache: "gradle"
106105

107106
- name: Set up Dart SDK ${{ matrix.dart-version }}
108107
# This action installs the specified Dart SDK version.
@@ -120,11 +119,11 @@ jobs:
120119

121120
- name: Generate Server Test Reports
122121
uses: step-security/test-reporter@v2
123-
if: ${{ !cancelled() }} # run this step even if previous step failed
122+
if: ${{ !cancelled() }} # run this step even if previous step failed
124123
with:
125-
name: JEST Tests # Name of the check run which will be created
126-
path: reports/jest-*.xml # Path to test results
127-
reporter: jest-junit # Format of test results
124+
name: JEST Tests # Name of the check run which will be created
125+
path: reports/jest-*.xml # Path to test results
126+
reporter: jest-junit # Format of test results
128127

129128
#- name: (WINDOWS) Run Dart Analysis Server Tests with Dart SDK ${{ matrix.dart-version }}
130129
# if: runner.os == 'Windows' # Run even if one SDK version fails
@@ -135,13 +134,11 @@ jobs:
135134
# ./gradlew :test --tests com.jetbrains.dart.analysisServer.*
136135
# working-directory: third_party
137136

138-
139-
140137
# Job 4: Verify Plugin
141138
verify-plugin:
142139
strategy:
143140
matrix:
144-
os: [ ubuntu-latest, macos-latest, windows-latest ]
141+
os: [ubuntu-latest, macos-latest, windows-latest]
145142
runs-on: ${{ matrix.os }} # Use the OS from the matrix
146143
steps:
147144
- name: Checkout code
@@ -150,9 +147,9 @@ jobs:
150147
- name: Set up JDK
151148
uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk
152149
with:
153-
distribution: 'temurin' # Recommended distribution
154-
java-version: '21' # Match version in build.gradle.kts
155-
cache: 'gradle' # Cache Gradle dependencies
150+
distribution: "temurin" # Recommended distribution
151+
java-version: "21" # Match version in build.gradle.kts
152+
cache: "gradle" # Cache Gradle dependencies
156153

157154
- name: Verify Plugin Actions
158155
run: |

0 commit comments

Comments
 (0)