Avoid unnecessary workflow triggers (#499)

This commit is contained in:
Birk Skyum
2022-09-23 11:13:21 +02:00
committed by GitHub
parent 034946cad6
commit db2c871da6
5 changed files with 21 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ on:
- ".github/workflows/macos-ci.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"

View File

@@ -29,6 +29,7 @@ on:
- ".github/workflows/macos-ci.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"

View File

@@ -30,6 +30,7 @@ on:
- ".github/workflows/macos-ci.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"
@@ -61,6 +62,7 @@ on:
- ".github/workflows/macos-ci.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"

View File

@@ -31,6 +31,7 @@ on:
- ".github/workflows/ios-release.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"
@@ -60,6 +61,7 @@ on:
- ".github/workflows/ios-release.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/node-release.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"

View File

@@ -24,7 +24,11 @@
coordinate = CLLocationCoordinate2DMake(38.9131982, -77.0325453144239);
XCTAssertEqualObjects([shortFormatter stringFromCoordinate:coordinate], @"38°54′48″N, 77°1′57″W");
XCTAssertEqualObjects([mediumFormatter stringFromCoordinate:coordinate], @"38°54′48″ north, 77°1′57″ west");
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"38 degree(s), 54 minute(s), and 48 second(s) north by 77 degree(s), 1 minute(s), and 57 second(s) west");
#else
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"38 degrees, 54 minutes, and 48 seconds north by 77 degrees, 1 minute, and 57 seconds west");
#endif
shortFormatter.allowsSeconds = NO;
mediumFormatter.allowsSeconds = NO;
@@ -33,7 +37,12 @@
coordinate = CLLocationCoordinate2DMake(38.9131982, -77.0325453144239);
XCTAssertEqualObjects([shortFormatter stringFromCoordinate:coordinate], @"38°55′N, 77°2′W");
XCTAssertEqualObjects([mediumFormatter stringFromCoordinate:coordinate], @"38°55′ north, 77°2′ west");
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"38 degree(s) and 55 minute(s) north by 77 degree(s) and 2 minute(s) west");
#else
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"38 degrees and 55 minutes north by 77 degrees and 2 minutes west");
#endif
shortFormatter.allowsMinutes = NO;
mediumFormatter.allowsMinutes = NO;
@@ -42,7 +51,13 @@
coordinate = CLLocationCoordinate2DMake(38.9131982, -77.0325453144239);
XCTAssertEqualObjects([shortFormatter stringFromCoordinate:coordinate], @"39°N, 77°W");
XCTAssertEqualObjects([mediumFormatter stringFromCoordinate:coordinate], @"39° north, 77° west");
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"39 degree(s) north by 77 degree(s) west");
#else
XCTAssertEqualObjects([longFormatter stringFromCoordinate:coordinate], @"39 degrees north by 77 degrees west");
#endif
}
@end