Skip to content

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 2, 2024
1 parent 3b59127 commit 42e1c2b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/doc-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Automated doc tests

on:
push:
pull_request:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:

jobs:
extract-and-run:
name: "Extract and run tests"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Update crates we care about
working-directory: ./docs-test-gen
run: |
#cargo update -p cosmwasm-core
cargo update -p cosmwasm-crypto
cargo update -p cosmwasm-derive
cargo update -p cosmwasm-schema-derive
cargo update -p cosmwasm-schema
cargo update -p cosmwasm-std
- name: Extract all the tests
working-directory: ./docs-test-gen
run: cargo run
- name: Run all the generated tests
working-directory: ./docs-test-gen
run: cargo test
2 changes: 1 addition & 1 deletion docs-test-gen/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs-test-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ pulldown-cmark = { version = "0.10.3", default-features = false }
strum = { version = "0.26.2", features = ["derive"] }

[dev-dependencies]
cosmwasm-schema = "2.0.2"
cosmwasm-std = "2.0.2"
cosmwasm-schema = "*"
cosmwasm-std = "*"

0 comments on commit 42e1c2b

Please sign in to comment.