From 1695f3f477d6a818df902213681c5bef56c1bf5b Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 21 Jun 2022 19:47:38 +0200 Subject: [PATCH] Increment version, update readme and add workflow Signed-off-by: trivernis --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- README.md | 7 +++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9092b17 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Run checks and tests +on: + workflow_dispatch: + push: + branches: [ main, develop, feature/gh-actions ] + pull_request: + branches: [ main, develop ] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + if: ${{ !env.ACT }} + + - name: Cache build data + if: ${{ !env.ACT }} + uses: actions/cache@v2 + with: + path: | + target + ~/.cargo/ + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - name: Fetch + run: cargo fetch + + - name: Check + run: cargo check --all-features + + - name: Lint + run: cargo clippy -- -D warnings + + - name: Test + run : cargo test --all-features \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 047f517..562a826 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minecraft-data-rs" -version = "0.4.6" +version = "0.4.7" authors = ["trivernis "] edition = "2018" readme = "README.md" diff --git a/README.md b/README.md index bdace3a..0bc97b2 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ for food in food { } ``` +## Features + +| Feature | Description | +| -------------|------------------------------------------------------------| +| include-data | includes the whole minecraft-data repository in the binary | +| api | enables the api to query minecraft data | + # License This project is Licensed under MIT. \ No newline at end of file