Skip to content

Commit 71537c8

Browse files
committed
1 parent 2bbedf1 commit 71537c8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/rundemo.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,20 @@ jobs:
4646
run: gh pr checkout 53
4747
env:
4848
GH_TOKEN: ${{ github.token }}
49-
- run: ls ${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA
49+
- run: ls ${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA/usr/share/icu/icudt74l.dat
5050
- name: "Patch swift-foundation-icu to run on Linux"
5151
working-directory: swift-foundation-icu
5252
run: perl -pi -e 's/"USE_PACKAGE_DATA"/"DISABLED_USE_PACKAGE_DATA"/g' Package.swift
5353
- name: "Test swift-foundation-icu-demo"
54-
#if: false
54+
working-directory: swift-foundation-icu-demo
55+
run: ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA swift test
56+
- name: "Corrupt locale data"
57+
run: echo '' > ${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA/usr/share/icu/icudt74l.dat
58+
- name: "Re-test swift-foundation-icu-demo"
59+
working-directory: swift-foundation-icu-demo
60+
# should fail
5561
run: ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA swift test
62+
5663
- name: "Build Foundation"
5764
working-directory: swift-foundation
5865
run: SWIFTCI_USE_LOCAL_DEPS=.. swift build

0 commit comments

Comments
 (0)