-
Notifications
You must be signed in to change notification settings - Fork 41
53 lines (44 loc) · 1.83 KB
/
conformance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Unicode Conformance Testing
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/conformance.yml'
- 'pkgs/intl4x/**'
push:
branches: [ main ]
paths:
- '.github/workflows/conformance.yml'
- 'pkgs/intl4x/**'
schedule:
- cron: '0 0 * * *' # daily
jobs:
run_all:
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7
- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7
with:
repository: unicode-org/conformance
path: 'conformance'
- run: mv pkgs/intl4x/test/tools/conformance_config.json conformance/conformance_config.json
- run: (cd conformance; bash generateDataAndRun.sh conformance_config.json)
- name: Download Reference Exec Summary
if: github.ref != 'refs/heads/main'
continue-on-error: true
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: reference_exec_summary
- run: (cd pkgs/intl4x; dart pub get)
if: github.ref != 'refs/heads/main'
- run: dart run pkgs/intl4x/test/tools/conformance_parser.dart --current-path conformance/TEMP_DATA/testReports/exec_summary.json --reference-path reference_exec_summary >> $GITHUB_STEP_SUMMARY
if: github.ref != 'refs/heads/main'
- name: Upload Reference Summary iff on main branch
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: reference_exec_summary
path: conformance/TEMP_DATA/testReports/exec_summary.json