Skip to content

Commit 6759667

Browse files
committed
CI: Add documentation build and lint jobs
1 parent 1f28389 commit 6759667

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ jobs:
1414

1515
- name: Build
1616
run: make build
17+
docs:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Build documentation
24+
run: make docs
25+
lint:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
31+
- name: Lint
32+
run: make lint
1733
test:
1834
runs-on: ubuntu-latest
1935
steps:

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
build:
33
@docker buildx build -t reductionist .
44

5+
.PHONY: docs
6+
docs:
7+
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
8+
@docker run --rm -e RUSTDOCFLAGS="-D warnings" reductionist-test cargo doc --no-deps
9+
10+
.PHONY: lint
11+
lint:
12+
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
13+
@docker run --rm reductionist-test cargo check --color always
14+
515
.PHONY: test
616
test:
717
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
8-
@docker run --rm reductionist-test cargo check --color always
918
@docker run --rm reductionist-test cargo test --color always
10-
@docker run --rm reductionist-test cargo bench --color always
1119

1220
.PHONY: run
1321
run:

0 commit comments

Comments
 (0)