Skip to content

Commit 84391b3

Browse files
Skip tests in copilot-setup-steps.yml for faster setup
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 346b2b6 commit 84391b3

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/copilot-setup-steps.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ steps:
2323
- name: Build with Maven
2424
shell: bash
2525
run: |
26-
# Run a full build with tests to verify everything works
27-
./mvnw -B clean verify --file pom.xml
26+
# Build and download dependencies, skip tests for faster setup
27+
./mvnw -B clean verify -DskipTests --file pom.xml
2828
notes: |
29-
Runs a full Maven build including CheckStyle validation and all tests.
29+
Runs a Maven build to verify the environment and download dependencies.
30+
Tests and integration tests are skipped during setup for faster execution.
31+
Tests can be run later as needed.
32+
3033
The -B flag runs Maven in batch (non-interactive) mode.
34+
The -DskipTests flag skips both unit tests and integration tests.
3135
3236
Build process includes:
3337
- CheckStyle validation (Google Java Style Guide)
3438
- Compilation of all modules (xapi-model, xapi-client, samples, xapi-model-spring-boot-starter)
35-
- Unit tests (300+ tests)
36-
- Integration tests
37-
- Code coverage analysis (JaCoCo)
39+
- Dependency resolution and caching
3840
39-
Expected duration: 2-3 minutes on first run, faster with cached dependencies.
41+
Expected duration: 1-2 minutes on first run, faster with cached dependencies.
4042
4143
Key dependencies automatically downloaded and cached:
4244
- Spring Boot 3.5.7
@@ -51,4 +53,4 @@ steps:
5153
Troubleshooting:
5254
- If build fails with "release version 25 not supported", the Java setup may have failed
5355
- If dependencies fail to download, check network connectivity
54-
- If tests fail, this may indicate an environment-specific issue
56+
- If CheckStyle fails, there may be code style violations

0 commit comments

Comments
 (0)