Skip to content

Commit 6e468c5

Browse files
authored
Run ninja build before tests (#5470)
* Run ninja build before tests * Separate ninja stuff into multiple steps
1 parent 6d81258 commit 6e468c5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ jobs:
5757
env:
5858
RESCRIPT_FORCE_REBUILD: 1
5959

60+
- name: ninja config
61+
if: runner.os != 'Windows'
62+
run: opam exec -- node ./scripts/ninja.js config
63+
64+
- name: ninja build
65+
if: runner.os != 'Windows'
66+
run: opam exec -- node ./scripts/ninja.js build
67+
68+
- name: Check for changes in lib folder
69+
run: git diff --exit-code lib/js lib/es6
70+
6071
- name: Run tests
6172
if: runner.os != 'Windows'
6273
run: opam exec -- node scripts/ciTest.js -all
@@ -65,13 +76,6 @@ jobs:
6576
if: runner.os == 'Windows'
6677
run: opam exec -- node scripts/ciTest.js -mocha -theme
6778

68-
- name: Ensure lib/js and lib/es6 are up to date
69-
if: runner.os != 'Windows'
70-
run: |
71-
opam exec -- node ./scripts/ninja.js config
72-
opam exec -- node ./scripts/ninja.js build
73-
git diff --exit-code lib/js lib/es6
74-
7579
- name: Get artifact info
7680
id: get_artifact_info
7781
run: node .github/workflows/get_artifact_info.js

0 commit comments

Comments
 (0)