Skip to content

Commit 1ad530e

Browse files
committed
Add explorer test to doc.yml ci workflow
1 parent de32416 commit 1ad530e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
path: |
5858
docs/build/*
5959
60-
build-explorer:
60+
build-test-explorer:
6161
runs-on: ubuntu-22.04
6262
steps:
6363
- name: Checkout sources
@@ -70,6 +70,15 @@ jobs:
7070
cache: 'yarn'
7171
cache-dependency-path: mithril-explorer/yarn.lock
7272

73+
- name: Install dependencies
74+
working-directory: mithril-explorer
75+
run: yarn install --frozen-lockfile
76+
77+
- name: Test explorer
78+
working-directory: mithril-explorer
79+
run: |
80+
make test
81+
7382
- name: Build Explorer
7483
working-directory: mithril-explorer
7584
run: |
@@ -109,7 +118,7 @@ jobs:
109118
needs:
110119
- cargo-doc
111120
- build-docusaurus
112-
- build-explorer
121+
- build-test-explorer
113122
- build-open-api-ui
114123
steps:
115124
- name: Download mithril-rust-doc artifact

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean install
1+
.PHONY: clean install build serve dev upgrade
22

33
yarn.lock:
44
yarn install

mithril-explorer/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean install
1+
.PHONY: clean install build dev test watch-test lint upgrade
22

33
yarn.lock:
44
yarn install
@@ -15,6 +15,12 @@ dev:
1515
@echo "Serving dev build at: http://localhost:3000/explorer"
1616
yarn run dev
1717

18+
test: yarn.lock
19+
yarn run test:ci
20+
21+
watch-test: yarn.lock
22+
yarn run test
23+
1824
lint:
1925
yarn run lint
2026

0 commit comments

Comments
 (0)