File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,29 @@ jobs:
165165 exit 1
166166 }
167167
168+ - name : Run command - Generate Emoji Data
169+ run : |
170+ cd unicodetools/mine/src
171+ mvn -s .github/workflows/mvn-settings.xml compile exec:java -Dexec.mainClass="org.unicode.tools.emoji.GenerateEmojiData" -am -pl unicodetools -DCLDR_DIR=$(cd ../../../cldr/mine/src ; pwd) -DUNICODETOOLS_GEN_DIR=$(cd ../Generated ; pwd) -DUNICODETOOLS_REPO_DIR=$(pwd)
172+ env :
173+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
174+
175+ # Some emoji files are UCD files, so we should check that their generator
176+ # not only runs, but that it doesn’t change anything.
177+ - name : Check that Emoji files are consistent
178+ run : |
179+ cd unicodetools/mine/src
180+ git diff --compact-summary --exit-code || {
181+ git diff --compact-summary |
182+ awk '{
183+ if (previous) {
184+ print "::error file="previous",title=File must be regenerated::Run org.unicode.tools.emoji.GenerateEmojiData."
185+ }
186+ previous=$1
187+ }'
188+ exit 1
189+ }
190+
168191 # Only test once we know the UCD is internally consistent.
169192 # MakeUnicodeFiles is much faster than this anyway.
170193 - name : Run command - Build and Test
You can’t perform that action at this time.
0 commit comments