Skip to content

Commit

Permalink
ci: use make
Browse files Browse the repository at this point in the history
  • Loading branch information
Randoooom committed Nov 27, 2023
1 parent 9a683c9 commit e2f0cc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ jobs:
- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: Install
args: cargo-make

- name: Tests
env:
GLOBAL_RATE_LIMIT: 1000
run: cargo test
run: cargo make test

docs:
name: docs
Expand Down
6 changes: 6 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Setup

[config]
skip_core_tasks = true

[tasks.docs_init]
command = "pnpm"
args = ["i"]
Expand Down Expand Up @@ -32,6 +35,9 @@ run_task = { name = ["postgres_database", "postgres_tests"], fork = true, cleanu
[tasks.postgres_cleanup]
script = "docker kill postgres;docker rm postgres"

[tasks.test]
run_task = { name = ["postgres"] }

# OpenAPI build

[tasks.docs_lint]
Expand Down

0 comments on commit e2f0cc1

Please sign in to comment.