Skip to content

Commit c87e6c4

Browse files
committed
fix(actions): unit test gui skipped on windows ci
1 parent a1df01c commit c87e6c4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
if: runner.os != 'Linux'
4949
env:
5050
DISABLE_COVERAGE: true
51+
CI: true # This explicitly sets the CI environment variable, although GitHub Actions does this automatically
5152
- name: Rename Unit Test Results
5253
if: always()
5354
run: mv test-results.xml test-results-${{ matrix.os }}.xml

src/test/integration.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ describe('WinUAE Integration test', () => {
111111
describe('complete workspace test', function () {
112112
if (process.platform === "win32") {
113113
it('should build and debug', function () {
114+
if (process.env.CI === 'true') {
115+
this.skip(); // Skip the test if running in GitHub Actions
116+
}
114117
return Promise.all([
115118
dc.configurationSequence(),
116119
dc.launch(launchArgs),

src/test/integrationfsuae.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ describe('FS-UAE Integration test', () => {
111111

112112
describe('complete workspace test', function () {
113113
it('should build and debug', function () {
114+
if (process.env.CI === 'true' && process.platform === "win32") {
115+
this.skip(); // Skip the test if running in GitHub Actions
116+
}
114117
return Promise.all([
115118
dc.configurationSequence(),
116119
dc.launch(launchArgs),

0 commit comments

Comments
 (0)