Skip to content

Commit 170c437

Browse files
committed
Add validation to CI
1 parent 6fde036 commit 170c437

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/validate.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Verify TTML Files
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
verify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Checkout ttt
15+
uses: actions/checkout@v4
16+
with:
17+
repository: skynav/ttt
18+
path: build/ttt
19+
submodules: true
20+
21+
- name: Set up JDK 8
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '8'
25+
distribution: 'temurin'
26+
cache: 'maven'
27+
28+
- name: Build ttt-ttv-all
29+
working-directory: build/ttt
30+
run: |
31+
mvn -B -f ttt-deps/pom.xml install
32+
mvn -B -pl ttt-ttv-all -am clean install -DskipTests
33+
34+
- name: Run verification
35+
run: |
36+
JAR=$(find build/ttt/ttt-ttv-all/target -name "ttt-ttv-all-*.jar" | head -n 1)
37+
echo "Using JAR: $JAR"
38+
find imsc* -name "*.ttml" -print0 | xargs -0 java -jar "$JAR" --force-encoding UTF-8

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

0 commit comments

Comments
 (0)